From 6cee6b591a0e17b7ebe8c2b9b78c1306af463377 Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Thu, 21 Apr 2016 09:47:54 +0200 Subject: [PATCH] Remove button. --- src/gui/messagepreviewer.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/gui/messagepreviewer.cpp b/src/gui/messagepreviewer.cpp index a5f20624a..fb9f34f27 100644 --- a/src/gui/messagepreviewer.cpp +++ b/src/gui/messagepreviewer.cpp @@ -40,7 +40,6 @@ void MessagePreviewer::createConnections() { box.setDetailedText(url.toString()); QAbstractButton *btn_open = box.addButton(tr("Open in external browser"), QMessageBox::ActionRole); QAbstractButton *btn_download = box.addButton(tr("Download"), QMessageBox::ActionRole); - QAbstractButton *btn_display = box.addButton(tr("Display"), QMessageBox::ActionRole); QAbstractButton *btn_cancel = box.addButton(QMessageBox::Cancel); box.setDefaultButton(QMessageBox::Cancel); @@ -52,9 +51,6 @@ void MessagePreviewer::createConnections() { else if (box.clickedButton() == btn_download) { qApp->downloadManager()->download(url); } - else if (box.clickedButton() == btn_display) { - // TODO: Zobrazit obrázek. - } btn_download->deleteLater(); btn_open->deleteLater();