zz_historyDialog.cpp

changeset 100
e40358266290
parent 98
5dcc551f260a
child 104
6e29bb0e83c5
--- a/zz_historyDialog.cpp	Thu Apr 11 17:15:01 2013 +0300
+++ b/zz_historyDialog.cpp	Fri Apr 12 00:28:17 2013 +0300
@@ -238,13 +238,8 @@
 
 // =============================================================================
 void HistoryDialog::slot_clear () {
-	if (QMessageBox::question (this, "Confirm", "Are you sure you want to "
-		"clear the edit history?\nThis cannot be undone.",
-		(QMessageBox::Yes | QMessageBox::No), QMessageBox::No) != QMessageBox::Yes)
-	{
-		// Canceled
-		return;
-	}
+	if (!confirm ("Are you sure you want to clear the edit history?\nThis cannot be undone."))
+		return; // Canceled
 	
 	History::clear ();
 	populateList ();

mercurial