Added confirmation prompt when deleting List.
authorWillem Liu <willem.liu@gmail.com>
Thu, 5 May 2011 09:23:08 +0000 (11:23 +0200)
committerWillem Liu <willem.liu@gmail.com>
Thu, 5 May 2011 09:23:08 +0000 (11:23 +0200)
chooselistform.cpp
chooselistform.h
debian/README
debian/changelog
debian/copyright
qtc_packaging/debian_fremantle/README
qtc_packaging/debian_fremantle/changelog
qtc_packaging/debian_fremantle/copyright

index 25932f9..aee6c4e 100755 (executable)
@@ -72,13 +72,18 @@ void ChooseListForm::on_savePushButton_clicked()
 \r
 void ChooseListForm::on_removePushButton_clicked()\r
 {\r
-    if(ui->listWidget->selectedItems().size() > 0)\r
+    int res = QMessageBox::warning(this, "Delete list", "The selected list will be deleted.", QMessageBox::Ok, QMessageBox::Cancel);\r
+\r
+    if(res == QMessageBox::Ok)\r
     {\r
-        qDebug() << "Remove" << ui->listWidget->currentRow();\r
-        QListWidgetItem * item = ui->listWidget->takeItem(ui->listWidget->currentRow());\r
-        settings->remove(item->text());\r
-        settings->setValue(SELECTED_LIST_NAME, LIST_TEXT);\r
-        saveList();\r
+        if(ui->listWidget->selectedItems().size() > 0)\r
+        {\r
+            qDebug() << "Remove" << ui->listWidget->currentRow();\r
+            QListWidgetItem * item = ui->listWidget->takeItem(ui->listWidget->currentRow());\r
+            settings->remove(item->text());\r
+            settings->setValue(SELECTED_LIST_NAME, LIST_TEXT);\r
+            saveList();\r
+        }\r
     }\r
 }\r
 \r
index 390cc79..f3982aa 100755 (executable)
@@ -3,6 +3,7 @@
 \r
 #include <QWidget>\r
 #include <QDebug>\r
+#include <QMessageBox>\r
 #ifdef Q_WS_MAEMO_5\r
 #include <QMaemo5InformationBox>\r
 #endif\r
index 3cb52fa..2b6a994 100755 (executable)
@@ -3,4 +3,4 @@ The Debian Package easylist
 
 Comments regarding the Package
 
- -- Willem Liu <willem.liu@gmail.com>  Sat, 26 Mar 2011 11:17:23 +0100
+ -- unknown <>  Thu, 05 May 2011 10:43:11 +0200
index b506a4d..8b9869c 100755 (executable)
@@ -1,7 +1,5 @@
-easylist (0.3.26) unstable; urgency=low
+easylist (0.3.27) unstable; urgency=low
 
-  * Changed default sync website to http://easylist.willemliu.nl
-  * Changed default sync URL to http://easylist.willemliu.nl/getList.php
-  * Minor improvements to the About box.
+  * Added confirmation prompt when deleting List.
 
- -- Willem Liu <willem.liu@gmail.com>  Sat, 3 May 2011 19:53:57 +0200
+ -- Willem Liu <willem.liu@gmail.com>  Thu, 05 May 2011 10:43:11 +0200
index c8581cb..d4df08b 100755 (executable)
@@ -1,5 +1,5 @@
 This package was debianized by Willem Liu <willem.liu@gmail.com> on
-Sat, 30 Apr 2011 11:57:57 +0200.
+Thu, 05 May 2011 10:43:11 +0200.
 
 It was downloaded from <url://example.com>
 
index 3cb52fa..2b6a994 100755 (executable)
@@ -3,4 +3,4 @@ The Debian Package easylist
 
 Comments regarding the Package
 
- -- Willem Liu <willem.liu@gmail.com>  Sat, 26 Mar 2011 11:17:23 +0100
+ -- unknown <>  Thu, 05 May 2011 10:43:11 +0200
index b506a4d..8b9869c 100755 (executable)
@@ -1,7 +1,5 @@
-easylist (0.3.26) unstable; urgency=low
+easylist (0.3.27) unstable; urgency=low
 
-  * Changed default sync website to http://easylist.willemliu.nl
-  * Changed default sync URL to http://easylist.willemliu.nl/getList.php
-  * Minor improvements to the About box.
+  * Added confirmation prompt when deleting List.
 
- -- Willem Liu <willem.liu@gmail.com>  Sat, 3 May 2011 19:53:57 +0200
+ -- Willem Liu <willem.liu@gmail.com>  Thu, 05 May 2011 10:43:11 +0200
index c8581cb..d4df08b 100755 (executable)
@@ -1,5 +1,5 @@
 This package was debianized by Willem Liu <willem.liu@gmail.com> on
-Sat, 30 Apr 2011 11:57:57 +0200.
+Thu, 05 May 2011 10:43:11 +0200.
 
 It was downloaded from <url://example.com>