Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F577
FlushPreferencesCOREUI.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
iud
Aug 10 2010, 2:00 PM
2010-08-10 14:00:00 (UTC+2)
Size
1 KB
Referenced Files
None
Subscribers
None
FlushPreferencesCOREUI.patch
View Options
Index: mitk/CoreUI/Bundles/org.mitk.gui.qt.common/src/QmitkGeneralPreferencePage.cpp
===================================================================
--- mitk/CoreUI/Bundles/org.mitk.gui.qt.common/src/QmitkGeneralPreferencePage.cpp (revision 25348)
+++ mitk/CoreUI/Bundles/org.mitk.gui.qt.common/src/QmitkGeneralPreferencePage.cpp (working copy)
@@ -84,3 +84,9 @@
// if(_GeneralPreferencesNode.IsNotNull())
// m_StartMaximized->setChecked(_GeneralPreferencesNode->GetBool("startMaximized", false));
}
+
+void QmitkGeneralPreferencePage::FlushPreferences()
+{
+ // Does not have a flush method
+ /*this->m_GeneralPreferencesNode.Flush();*/
+}
Index: mitk/CoreUI/Bundles/org.mitk.gui.qt.common/src/QmitkGeneralPreferencePage.h
===================================================================
--- mitk/CoreUI/Bundles/org.mitk.gui.qt.common/src/QmitkGeneralPreferencePage.h (revision 25348)
+++ mitk/CoreUI/Bundles/org.mitk.gui.qt.common/src/QmitkGeneralPreferencePage.h (working copy)
@@ -68,6 +68,12 @@
/// \see IPreferencePage::Update()
///
virtual void Update();
+
+ /**
+ * @see berry::IPreferencePage::FlushReferences()
+ */
+ void FlushPreferences();
+
protected:
berry::IPreferences::WeakPtr m_GeneralPreferencesNode;
//QCheckBox* m_StartMaximized;
Index: mitk/CoreUI/Bundles/org.mitk.gui.qt.common/src/QmitkPreferencesDialog.cpp
===================================================================
--- mitk/CoreUI/Bundles/org.mitk.gui.qt.common/src/QmitkPreferencesDialog.cpp (revision 25348)
+++ mitk/CoreUI/Bundles/org.mitk.gui.qt.common/src/QmitkPreferencesDialog.cpp (working copy)
@@ -335,7 +335,8 @@
{
prefPage = it->prefPage;
if(prefPage)
- prefPage->PerformOk();
+ if(prefPage->PerformOk())
+ prefPage->FlushPreferences();
}
this->done(QDialog::Accepted);
File Metadata
Details
Attached
Mime Type
text/plain
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
554
Default Alt Text
FlushPreferencesCOREUI.patch (1 KB)
Attached To
Mode
T5037: Flushing of the preferences was only done when exiting the application
Attached
Detach File
Event Timeline
•
iud
added a comment.
Aug 10 2010, 2:00 PM
2010-08-10 14:00:00 (UTC+2)
Comment Actions
Core UI changes for the flushing preferences directly
Log In to Comment