diff options
Diffstat (limited to 'gui/ConsoleWindow.cpp')
-rw-r--r-- | gui/ConsoleWindow.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/gui/ConsoleWindow.cpp b/gui/ConsoleWindow.cpp index f08f10de..5db4442e 100644 --- a/gui/ConsoleWindow.cpp +++ b/gui/ConsoleWindow.cpp @@ -189,11 +189,7 @@ void ConsoleWindow::on_btnPaste_clicked() ProgressDialog dialog(this); PasteUpload* paste=new PasteUpload(this, text); dialog.exec(paste); - if(paste->successful()) - { - paste->messageBox()->exec(); - } - else + if(!paste->successful()) { CustomMessageBox::selectable(this, "Upload failed", paste->failReason(), QMessageBox::Critical)->exec(); } |