diff options
Diffstat (limited to 'mainwindow.cpp')
-rw-r--r-- | mainwindow.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mainwindow.cpp b/mainwindow.cpp index 805e64f..62983c8 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -261,6 +261,7 @@ MainWindow::newModel(DatabaseModel *newModel) delete m_model; } m_model = newModel; + updateMode(m_model->mode()); m_undoGroup->addStack(m_model->undoStack()); m_undoGroup->setActiveStack(m_model->undoStack()); |