[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kexi] src/plugins/forms: GIT_SILENT Forms: simplify condition (silent)
From: Jaroslaw Staniek <staniek () kde ! org>
Date: 2016-02-29 23:12:18
Message-ID: E1aaWzC-0000sv-1h () scm ! kde ! org
[Download RAW message or body]
Git commit 2c7122e78bf974e79751dae947cf61d8996f7974 by Jaroslaw Staniek.
Committed on 29/02/2016 at 23:07.
Pushed by staniek into branch 'master'.
GIT_SILENT Forms: simplify condition
M +1 -1 src/plugins/forms/kexiformview.cpp
http://commits.kde.org/kexi/2c7122e78bf974e79751dae947cf61d8996f7974
diff --git a/src/plugins/forms/kexiformview.cpp b/src/plugins/forms/kexiformview.cpp
index 96406db..cbc3334 100644
--- a/src/plugins/forms/kexiformview.cpp
+++ b/src/plugins/forms/kexiformview.cpp
@@ -510,7 +510,7 @@ tristate KexiFormView::afterSwitchFrom(Kexi::ViewMode mode)
}
}
- if (mode != 0 && mode != Kexi::DesignViewMode) {
+ if (mode == Kexi::DataViewMode) {
//preserve contents pos after switching to other view
d->scrollView->horizontalScrollBar()->setValue(tempData()->scrollViewContentsPos.x());
d->scrollView->verticalScrollBar()->setValue(tempData()->scrollViewContentsPos.y());
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic