summaryrefslogtreecommitdiffstats
path: root/src/fbgui.cpp
diff options
context:
space:
mode:
authorJonathan Bauer2011-03-06 18:20:29 +0100
committerJonathan Bauer2011-03-06 18:20:29 +0100
commit01ba87df900d8ec6d0b0b52f8aa59db8bfcb7076 (patch)
tree1562371fa24549e47d607657447df0aaffb63c27 /src/fbgui.cpp
parentbaseUrl is now global variable (diff)
downloadfbgui-01ba87df900d8ec6d0b0b52f8aa59db8bfcb7076.tar.gz
fbgui-01ba87df900d8ec6d0b0b52f8aa59db8bfcb7076.tar.xz
fbgui-01ba87df900d8ec6d0b0b52f8aa59db8bfcb7076.zip
URL loading from cmdline or config file or default, depending where an URL can be found.
Diffstat (limited to 'src/fbgui.cpp')
-rw-r--r--src/fbgui.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/fbgui.cpp b/src/fbgui.cpp
index 2303844..991372b 100644
--- a/src/fbgui.cpp
+++ b/src/fbgui.cpp
@@ -5,16 +5,17 @@
#include <QUrl>
#include <QMap>
-QUrl baseUrl;
+QUrl baseURL;
// Function not yet used, depends how settings will be loaded.
+// Probably better to not use a member variable to save settings,
+// rather process/set them in the main & use globals.
void fbgui::setOption(QString key, QString value)
{
if (!_options.contains(key))
_options.insert(key, value);
else
{
- // temp, find a better way for this
_options.remove(key);
_options.insert(key, value);
}