# HG changeset patch # User Hasan Yavuz Ă–ZDERYA # Date 2018-06-25 13:53:09 # Node ID d19fdcb6a3916e7286b371a636338d9c4921166c # Parent afdfee439d68375c2f8bcd0ab3fbfa0c5596c167 correctly remember record and log tabs focus diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -48,11 +48,14 @@ Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin) #endif +// TODO: depends on tab insertion order, a better solution would be to use object names const QMap panelSettingMap({ {0, "Port"}, {1, "DataFormat"}, {2, "Plot"}, - {3, "Commands"} + {3, "Commands"}, + {4, "Record"}, + {5, "Log"} }); MainWindow::MainWindow(QWidget *parent) :