mirror of
https://github.com/martinrotter/rssguard.git
synced 2025-01-14 17:47:21 +01:00
Remove button.
This commit is contained in:
parent
7f139b98b1
commit
6cee6b591a
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user