diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2020-07-25 21:17:24 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2020-11-03 11:39:05 -0500 |
| commit | cfdfa9d40e09d509396f57fbf70b48fa2136c230 (patch) | |
| tree | be3810fc793423affe512d691770f70611b40f7f /src/instancemanager.cpp | |
| parent | 048e3ac0d9b4e4258c9c2ac4d39d332f340e73a0 (diff) | |
PathChecker is unnecessary, refactored its guts into NamePage and PathsPage
made existing paths just a warning, don't check for portable instances
Diffstat (limited to 'src/instancemanager.cpp')
| -rw-r--r-- | src/instancemanager.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/instancemanager.cpp b/src/instancemanager.cpp index b135cac1..849cdb5e 100644 --- a/src/instancemanager.cpp +++ b/src/instancemanager.cpp @@ -353,7 +353,12 @@ QStringList InstanceManager::instanceNames() const bool InstanceManager::isPortablePath(const QString& dataPath) { - return (dataPath == qApp->applicationDirPath()); + return (dataPath == portablePath()); +} + +QString InstanceManager::portablePath() +{ + return qApp->applicationDirPath(); } bool InstanceManager::portableInstall() const |
