# HG changeset patch # User matthiasm # Date 1402647900 -3600 # Node ID 111bf81a5c967a642e8133f931b9105448715c49 # Parent 4cf65a721a7740c793bbfcf5c817c48bb4ce31e8 and some more fixes around the file saving (remove from toolbar, deactivate when there's nothing to save) diff -r 4cf65a721a77 -r 111bf81a5c96 src/MainWindow.cpp --- 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();