Permalink
Browse files

Fixes #332

  • Loading branch information...
1 parent 87d22fe commit 0a4508f3c346656cc135ab133b960ef5bf823cc2 Daniel Kabel committed Mar 29, 2013
Showing with 5 additions and 3 deletions.
  1. +5 −3 smallWidgets/ClosableImage.cpp
@@ -301,12 +301,14 @@ bool ClosableImage::confirmDeleteImage()
if (Settings::instance()->dontShowDeleteImageConfirm())
return true;
- QMessageBox msgBox(QMessageBox::Question, tr("Really delete image?"), tr("Are you sure you want to delete this image?"), 0, this);
+ QMessageBox msgBox;
+ msgBox.setIcon(QMessageBox::Question);
+ msgBox.setWindowTitle(tr("Really delete image?"));
+ msgBox.setText(tr("Are you sure you want to delete this image?"));
+ msgBox.setStandardButtons(QMessageBox::Yes | QMessageBox::No);
QCheckBox dontPrompt(QObject::tr("Do not ask again"), &msgBox);
dontPrompt.blockSignals(true);
msgBox.addButton(&dontPrompt, QMessageBox::ActionRole);
- msgBox.addButton(QMessageBox::Yes);
- msgBox.addButton(QMessageBox::No);
int ret = msgBox.exec();
if (dontPrompt.checkState() == Qt::Checked && ret == QMessageBox::Yes)
Settings::instance()->setDontShowDeleteImageConfirm(true);

0 comments on commit 0a4508f

Please sign in to comment.