summaryrefslogtreecommitdiffstats
path: root/application/setupwizard/JavaWizardPage.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2017-01-21 18:18:53 +0100
committerPetr Mrázek <peterix@gmail.com>2017-01-21 18:27:16 +0100
commit782384f185720699c5105271bfc78275bdc78054 (patch)
treeff34b04d183ffa856bb757b06f82a0a652083aa3 /application/setupwizard/JavaWizardPage.cpp
parentceb5fc6d755cdcb263edc27386db38de9499048f (diff)
downloadMultiMC-782384f185720699c5105271bfc78275bdc78054.tar
MultiMC-782384f185720699c5105271bfc78275bdc78054.tar.gz
MultiMC-782384f185720699c5105271bfc78275bdc78054.tar.lz
MultiMC-782384f185720699c5105271bfc78275bdc78054.tar.xz
MultiMC-782384f185720699c5105271bfc78275bdc78054.zip
GH-1793 rearrange setup wizard logic to only check if they are needed once
Diffstat (limited to 'application/setupwizard/JavaWizardPage.cpp')
-rw-r--r--application/setupwizard/JavaWizardPage.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/application/setupwizard/JavaWizardPage.cpp b/application/setupwizard/JavaWizardPage.cpp
index d0357504..46b6ee3f 100644
--- a/application/setupwizard/JavaWizardPage.cpp
+++ b/application/setupwizard/JavaWizardPage.cpp
@@ -197,24 +197,6 @@ bool JavaWizardPage::validatePage()
return true;
}
-bool JavaWizardPage::isRequired()
-{
- QString currentHostName = QHostInfo::localHostName();
- QString oldHostName = MMC->settings()->get("LastHostname").toString();
- if (currentHostName != oldHostName)
- {
- MMC->settings()->set("LastHostname", currentHostName);
- return true;
- }
- QString currentJavaPath = MMC->settings()->get("JavaPath").toString();
- QString actualPath = FS::ResolveExecutable(currentJavaPath);
- if (actualPath.isNull())
- {
- return true;
- }
- return false;
-}
-
bool JavaWizardPage::wantsRefreshButton()
{
return true;