changeset 312:111bf81a5c96

and some more fixes around the file saving (remove from toolbar, deactivate when there's nothing to save)
author matthiasm
date Fri, 13 Jun 2014 09:25:00 +0100
parents 4cf65a721a77
children eef5c50e7e34
files src/MainWindow.cpp
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/MainWindow.cpp	Fri Jun 13 09:06:39 2014 +0100
+++ b/src/MainWindow.cpp	Fri Jun 13 09:25:00 2014 +0100
@@ -478,14 +478,14 @@
     menu->addAction(action);
     toolbar->addAction(action);
 
-    icon = il.load("filesaveas");
-    icon.addPixmap(il.loadPixmap("filesaveas-22"));
+    icon = il.load("filesave");
+    icon.addPixmap(il.loadPixmap("filesave-22"));
     action = new QAction(icon, tr("Save Session In &Audio Path"), this);
     action->setShortcut(tr("Ctrl+Alt+S"));
     action->setStatusTip(tr("Save the current session into a %1 session file with the same path and filename but .ton extension.").arg(QApplication::applicationName()));
     connect(action, SIGNAL(triggered()), this, SLOT(saveSessionInAudioPath()));
+    connect(this, SIGNAL(canSave(bool)), action, SLOT(setEnabled(bool)));
     menu->addAction(action);
-    toolbar->addAction(action);
 
     menu->addSeparator();