diff options
author | Lukáš Lalinský <lalinsky@gmail.com> | 2008-12-05 16:43:38 +0100 |
---|---|---|
committer | Lukáš Lalinský <lalinsky@gmail.com> | 2008-12-05 16:43:38 +0100 |
commit | 1ce927e6be2780f9548e14509b8c327b19e8547d (patch) | |
tree | 5599f57be87c9a39e73ccea94a749e35014192cf /mainwindow.cpp | |
parent | 0a33eeb4e9f041187619218c485b91034650ee0f (diff) | |
download | dbmodel-1ce927e6be2780f9548e14509b8c327b19e8547d.tar.xz |
Set the correct edit mode on Open/New
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()); |