diff --git a/qt/emilpro/mainwindow.cc b/qt/emilpro/mainwindow.cc
index be77ced..a626cd6 100644
--- a/qt/emilpro/mainwindow.cc
+++ b/qt/emilpro/mainwindow.cc
@@ -727,13 +727,26 @@ MainWindow::RestoreSettings()
QSettings settings("ska", "emilpro");
settings.beginGroup("MainWindow");
-
if (const auto geometry = settings.value("geometry", QByteArray()).toByteArray();
!geometry.isEmpty())
{
restoreGeometry(geometry);
}
+ settings.endGroup();
+ settings.beginGroup("Splitters");
+ if (const auto state =
+ settings.value("symbol_instruction_splitter_size", QByteArray()).toByteArray();
+ !state.isEmpty())
+ {
+ m_ui->symbolInstructionSplitter->restoreState(state);
+ }
+ if (const auto state =
+ settings.value("instruction_source_splitter_size", QByteArray()).toByteArray();
+ !state.isEmpty())
+ {
+ m_ui->instructionSourceSplitter->restoreState(state);
+ }
settings.endGroup();
}
@@ -745,6 +758,13 @@ MainWindow::SaveSettings()
settings.beginGroup("MainWindow");
settings.setValue("geometry", saveGeometry());
settings.endGroup();
+
+ settings.beginGroup("Splitters");
+ settings.setValue("symbol_instruction_splitter_size",
+ m_ui->symbolInstructionSplitter->saveState());
+ settings.setValue("instruction_source_splitter_size",
+ m_ui->instructionSourceSplitter->saveState());
+ settings.endGroup();
}
void
diff --git a/qt/emilpro/mainwindow.ui b/qt/emilpro/mainwindow.ui
index 1a06a0f..65f7b20 100644
--- a/qt/emilpro/mainwindow.ui
+++ b/qt/emilpro/mainwindow.ui
@@ -44,7 +44,7 @@
Qt::Vertical
-
+
0
@@ -401,7 +401,7 @@
-
+
Qt::Horizontal