summaryrefslogtreecommitdiff
path: root/src/instancemanager.h
diff options
context:
space:
mode:
authorMikaƫl Capelle <capelle.mikael@gmail.com>2021-02-12 18:09:15 +0100
committerGitHub <noreply@github.com>2021-02-12 18:09:15 +0100
commit607fafa364a1f3935b289172e3291eafed13014b (patch)
treea4695ea1507a8c25fada52617ff4e2b7d58e9ae3 /src/instancemanager.h
parent7dc28b10d9ed4cd4af15eeaca89b50996d6fd27d (diff)
parent48274f33579076711c0475e84c7adf68c52df733 (diff)
Merge pull request #1408 from isanae/portable-shortcuts
Fixes for portable shortcuts
Diffstat (limited to 'src/instancemanager.h')
-rw-r--r--src/instancemanager.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/instancemanager.h b/src/instancemanager.h
index 893b88e4..f1781a70 100644
--- a/src/instancemanager.h
+++ b/src/instancemanager.h
@@ -132,9 +132,14 @@ public:
// returns the instance name; this is the directory name or "Portable" for
// portable instances
//
+ // be careful when using this function to check whether two instances are the
+ // same, some parts of MO use an empty string to represent portable instances,
+ // but this function will return "Portable" for them; it's safer to check
+ // for isPortable() first
+ //
// can be called without setup()
//
- QString name() const;
+ QString displayName() const;
// returns either:
// 1) the game name from the INI, if readFromIni() was called;