summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gui/shortcut/itemshortcut.cpp8
-rw-r--r--src/gui/shortcut/itemshortcut.h2
2 files changed, 3 insertions, 7 deletions
diff --git a/src/gui/shortcut/itemshortcut.cpp b/src/gui/shortcut/itemshortcut.cpp
index 2fb10a3d4..1b27a08a9 100644
--- a/src/gui/shortcut/itemshortcut.cpp
+++ b/src/gui/shortcut/itemshortcut.cpp
@@ -57,16 +57,12 @@ ItemShortcut::~ItemShortcut()
logger->log1("ItemShortcut::~ItemShortcut");
}
-void ItemShortcut::load(const bool oldConfig)
+void ItemShortcut::load()
{
std::string name;
std::string color;
std::string data;
- const Configuration *cfg;
- if (oldConfig)
- cfg = &config;
- else
- cfg = &serverConfig;
+ const Configuration *cfg = &serverConfig;
if (mNumber)
{
diff --git a/src/gui/shortcut/itemshortcut.h b/src/gui/shortcut/itemshortcut.h
index 2f1b10569..4d7933b9f 100644
--- a/src/gui/shortcut/itemshortcut.h
+++ b/src/gui/shortcut/itemshortcut.h
@@ -55,7 +55,7 @@ class ItemShortcut final
/**
* Load the configuration information.
*/
- void load(const bool oldConfig = false);
+ void load();
/**
* Save the configuration information.