summaryrefslogtreecommitdiffstats
path: root/src/gui/mphoneform.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/mphoneform.cpp')
-rw-r--r--src/gui/mphoneform.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/mphoneform.cpp b/src/gui/mphoneform.cpp
index 1fc86e2..d28d3e1 100644
--- a/src/gui/mphoneform.cpp
+++ b/src/gui/mphoneform.cpp
@@ -253,10 +253,18 @@ void MphoneForm::init()
#ifndef WITH_DIAMONDCARD
Diamondcard->menuAction()->setVisible(false);
#endif
+
+ restoreState(g_gui_state->value("mainwindow/state").toByteArray());
+ restoreGeometry(g_gui_state->value("mainwindow/geometry").toByteArray());
+ splitter2->restoreState(g_gui_state->value("mainwindow/mainsplitter").toByteArray());
}
void MphoneForm::destroy()
{
+ g_gui_state->setValue("mainwindow/state", saveState());
+ g_gui_state->setValue("mainwindow/geometry", saveGeometry());
+ g_gui_state->setValue("mainwindow/mainsplitter", splitter2->saveState());
+
if (dtmfForm) {
MEMMAN_DELETE(dtmfForm);
delete dtmfForm;