summaryrefslogtreecommitdiffstats
path: root/gui/ConsoleWindow.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2014-06-28 17:07:08 +0200
committerPetr Mrázek <peterix@gmail.com>2014-06-28 17:07:08 +0200
commite8731c5d013e67ee0153d5a49b38b0e914d14aa0 (patch)
treeab3611681ec35ea8f10aa7b9a7770c1356b3ef22 /gui/ConsoleWindow.cpp
parent30b1f5e5cf935689fc628e37016e650655153d00 (diff)
downloadMultiMC-e8731c5d013e67ee0153d5a49b38b0e914d14aa0.tar
MultiMC-e8731c5d013e67ee0153d5a49b38b0e914d14aa0.tar.gz
MultiMC-e8731c5d013e67ee0153d5a49b38b0e914d14aa0.tar.lz
MultiMC-e8731c5d013e67ee0153d5a49b38b0e914d14aa0.tar.xz
MultiMC-e8731c5d013e67ee0153d5a49b38b0e914d14aa0.zip
Turn screenshot management into a page.
Diffstat (limited to 'gui/ConsoleWindow.cpp')
-rw-r--r--gui/ConsoleWindow.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/gui/ConsoleWindow.cpp b/gui/ConsoleWindow.cpp
index ac3752c5..d4ce1581 100644
--- a/gui/ConsoleWindow.cpp
+++ b/gui/ConsoleWindow.cpp
@@ -24,7 +24,6 @@
#include <gui/Platform.h>
#include <gui/dialogs/CustomMessageBox.h>
#include <gui/dialogs/ProgressDialog.h>
-#include "dialogs/ScreenshotDialog.h"
#include "logic/net/PasteUpload.h"
#include "logic/icons/IconList.h"
@@ -174,22 +173,6 @@ void ConsoleWindow::on_closeButton_clicked()
void ConsoleWindow::on_btnScreenshots_clicked()
{
- ScreenshotList *list = new ScreenshotList(proc->instance());
- Task *task = list->load();
- ProgressDialog prog(this);
- prog.exec(task);
- if (!task->successful())
- {
- CustomMessageBox::selectable(this, tr("Failed to load screenshots!"),
- task->failReason(), QMessageBox::Warning)->exec();
- return;
- }
- ScreenshotDialog dialog(list, this);
- if (dialog.exec() == ScreenshotDialog::Accepted)
- {
- CustomMessageBox::selectable(this, tr("Done uploading!"), dialog.message(),
- QMessageBox::Information)->exec();
- }
}
void ConsoleWindow::setMayClose(bool mayclose)