diff options
author | Girish Ramakrishnan <girish@forwardbias.in> | 2009-11-29 23:34:55 +0530 |
---|---|---|
committer | Girish Ramakrishnan <girish@forwardbias.in> | 2009-11-29 23:35:46 +0530 |
commit | ab1dff937b71a5ea5889fd0d98c2dbb253af879e (patch) | |
tree | 8338e78731613aefefd9307f19f3d3035d6b1026 | |
parent | 10ef318a9b1a75b62d31d99d1f3a0b658f66e63b (diff) |
Give the message box a parent
-rw-r--r-- | webscrap.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/webscrap.cpp b/webscrap.cpp index 9895289..5c912c9 100644 --- a/webscrap.cpp +++ b/webscrap.cpp @@ -32,6 +32,7 @@ #include <QTimer> #include <QDesktopServices> #include <QGraphicsScene> +#include <QGraphicsView> #include <QMessageBox> #include <QPushButton> #include <QGraphicsSceneMouseEvent> @@ -439,7 +440,7 @@ void WebScrapContainer::createEditToolbar() void WebScrapContainer::handleCloseButtonClicked() { - QMessageBox msg; + QMessageBox msg(scene()->views().first()); msg.setWindowTitle("Removing scrap"); msg.setText(tr("Are you sure you want to remove this scrap?")); QPushButton *removeButton = msg.addButton(tr("Remove"), QMessageBox::ActionRole); |