From: Heli Hyvättinen Date: Tue, 24 May 2011 15:57:10 +0000 (+0300) Subject: The state before going to scratchbox X-Git-Tag: v0.4.0~16 X-Git-Url: http://vcs.maemo.org/git/?p=kitchenalert;a=commitdiff_plain;h=824fa8ad782c01c1e77c0c9b8b859ad65547f128 The state before going to scratchbox Internal version number to 0.3.0 Fix for the bug that left selection dependent buttons on when the last timer was removed from the list --- diff --git a/src/kitchenalertmainwindow.cpp b/src/kitchenalertmainwindow.cpp index 33ae87a..56783c4 100644 --- a/src/kitchenalertmainwindow.cpp +++ b/src/kitchenalertmainwindow.cpp @@ -45,6 +45,7 @@ #include #include + 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() diff --git a/src/kitchenalertmainwindow.h b/src/kitchenalertmainwindow.h index 1ec3974..a2d7202 100644 --- a/src/kitchenalertmainwindow.h +++ b/src/kitchenalertmainwindow.h @@ -40,7 +40,7 @@ namespace Ui { /*! The main window class of KitchenAlert' @author Heli Hyvättinen - @date 2011-04-26 + @date 2011-01-05 @version 0.3.0 Operates the UI. @@ -150,7 +150,7 @@ private: CurrentAlertsTableModel model_; /*! The model that stores the alerts */ - QString defaultSaveDirectory_; + const QString defaultSaveDirectory_; /*! Returns a QMoldelIndex pointing to the cell in the column 0 of the row that is currently selected. diff --git a/src/main.cpp b/src/main.cpp index 1e0b10f..d09f822 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -29,7 +29,7 @@ int main(int argc, char *argv[]) { QApplication a(argc, argv); a.setApplicationName("KitchenAlert"); //a name is required to connect to DBus - a.setApplicationVersion("0.2.1"); + a.setApplicationVersion("0.3.0"); a.setOrganizationName("KitchenAlert"); KitchenAlertMainWindow w; #if defined(Q_WS_S60)