diff options
-rw-r--r-- | lsmainwindow.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lsmainwindow.cpp b/lsmainwindow.cpp index 71b374b..1d13a50 100644 --- a/lsmainwindow.cpp +++ b/lsmainwindow.cpp @@ -52,6 +52,11 @@ void LSMainWindow::createActions() { m_saveAction = new QAction("&Save", this); m_saveArchiveAsAction = new QAction("Save Archive &As...", this); + m_newArchiveAction->setShortcuts(QKeySequence::New); + m_openArchiveAction->setShortcuts(QKeySequence::Open); + m_saveAction->setShortcuts(QKeySequence::Save); + m_saveArchiveAsAction->setShortcuts(QKeySequence::SaveAs); + connect(m_newArchiveAction, SIGNAL(triggered()), SLOT(newArchive())); connect(m_openArchiveAction, SIGNAL(triggered()), SLOT(openArchive())); connect(m_saveAction, SIGNAL(triggered()), SLOT(save())); @@ -252,7 +257,7 @@ void LSMainWindow::openArchive() { setCurrentPackage(pkg); m_dirty = false; - m_isSaved = false; + m_isSaved = true; updateTitleBar(); } |