Few small fixes for confirmation system
[mdictionary] / trunk / src / base / gui / DictManagerWidget.h
index ba9dc7a..fa80275 100644 (file)
@@ -85,6 +85,9 @@ private Q_SLOTS:
     /*! Shows plugin's settings dialog*/
     void settingsButtonClicked();
 
+    //! Each change of state (that needs to be saved) should call this to indicate state change
+    void changed();
+
 private:
     QPushButton* addNewDictButton;
     QPushButton* removeDictButton;
@@ -97,6 +100,7 @@ private:
     //holds association between items on list and CommonDictInterface objects
     QHash<QListWidgetItem*, CommonDictInterface*> dictsHash;
     GUIInterface* guiInterface;
+    bool _changed;
 
     void refreshDictsList();
     #ifndef Q_WS_MAEMO_5