diff options
Diffstat (limited to 'qt-gui.cpp')
-rw-r--r-- | qt-gui.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/qt-gui.cpp b/qt-gui.cpp index caacdb1df..2b9f97d82 100644 --- a/qt-gui.cpp +++ b/qt-gui.cpp @@ -74,11 +74,9 @@ void init_qt_ui(int *argcp, char ***argvp, char *errormessage) const char *getSetting(QSettings &s, QString name) { QVariant v; - QString text; v = s.value(name); if (v.isValid()) { - text = v.toString(); - return strdup(text.toUtf8()); + return strdup(v.toString().toUtf8().constData()); } return NULL; } |