The state before going to scratchbox
[kitchenalert] / src / kitchenalertmainwindow.cpp
index 33ae87a..56783c4 100644 (file)
@@ -45,6 +45,7 @@
 #include <QSettings>
 #include <QFileDialog>
 
+  const QString defaultSaveDirectory_ = "/home/user/MyDocs/KitchenAlert/";
 
 
 KitchenAlertMainWindow::KitchenAlertMainWindow(QWidget *parent) :
@@ -52,8 +53,6 @@ KitchenAlertMainWindow::KitchenAlertMainWindow(QWidget *parent) :
     ui(new Ui::KitchenAlertMainWindow)
     {
 
-  defaultSaveDirectory_ = "/home/user/MyDocs/KitchenAlert/";
-
   ui->setupUi(this);
 
   setWindowIcon(QIcon(":/kitchenalert.png"));
@@ -388,9 +387,12 @@ void KitchenAlertMainWindow::remove()
         if (QMessageBox::question(this,tr("Confirm timer removal"),text,QMessageBox::Yes | QMessageBox::No) == QMessageBox::Yes)
         {
             model_.removeTimer(row);
+            ui->ComingAlertsTableView->clearSelection();
+            disableSelectionDependentButtons();
+
         }
     }
-    ui->SnoozeButton->setDisabled(true);
+
 }
 
 void KitchenAlertMainWindow::saveTimer()