From 46bceae4f4ec8a6c3cba2b0c989c72df552a2909 Mon Sep 17 00:00:00 2001 From: Treeki Date: Sun, 19 Aug 2012 01:51:35 +0200 Subject: fix a bug in the main window and add key shortcuts for the file menu --- lsmainwindow.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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(); } -- cgit v1.2.3