From 994c815bb972223bc1763ce806ab903f70b537fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Wed, 8 Apr 2015 13:50:21 +0200 Subject: [PATCH] NOISSUE show errors for instance updates in edit instance window --- application/pages/VersionPage.cpp | 6 ++++++ application/pages/VersionPage.h | 3 +++ 2 files changed, 9 insertions(+) diff --git a/application/pages/VersionPage.cpp b/application/pages/VersionPage.cpp index 056bb958..3de6a4c7 100644 --- a/application/pages/VersionPage.cpp +++ b/application/pages/VersionPage.cpp @@ -320,3 +320,9 @@ void VersionPage::versionCurrent(const QModelIndex ¤t, const QModelIndex & ui->changeMCVersionBtn->setEnabled(false); } } + +void VersionPage::onGameUpdateError(QString error) +{ + CustomMessageBox::selectable(this, tr("Error updating instance"), error, + QMessageBox::Warning)->show(); +} diff --git a/application/pages/VersionPage.h b/application/pages/VersionPage.h index d115d8f8..0965edeb 100644 --- a/application/pages/VersionPage.h +++ b/application/pages/VersionPage.h @@ -75,4 +75,7 @@ private: public slots: void versionCurrent(const QModelIndex ¤t, const QModelIndex &previous); + +private slots: + void onGameUpdateError(QString error); };