summaryrefslogtreecommitdiff
path: root/lsmainwindow.cpp
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2012-08-19 01:51:35 +0200
committerTreeki <treeki@gmail.com>2012-08-19 01:51:35 +0200
commit46bceae4f4ec8a6c3cba2b0c989c72df552a2909 (patch)
tree914f3c530f87043b6fd82a12cdc1e1eb6783d567 /lsmainwindow.cpp
parent2883326061ccadc1b21376dc25c92e1d6751d592 (diff)
downloadLayoutStudio-46bceae4f4ec8a6c3cba2b0c989c72df552a2909.tar.gz
LayoutStudio-46bceae4f4ec8a6c3cba2b0c989c72df552a2909.zip
fix a bug in the main window and add key shortcuts for the file menu
Diffstat (limited to '')
-rw-r--r--lsmainwindow.cpp7
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();
}