diff options
-rw-r--r-- | main.c | 2 | ||||
-rw-r--r-- | qt-gui.cpp | 10 |
2 files changed, 6 insertions, 6 deletions
@@ -217,7 +217,7 @@ int main(int argc, char **argv) subsurface_command_line_init(&argc, &argv); parse_xml_init(); - init_ui(&argc, &argv); /* the gtk stuff is needed for parsing below */ + init_ui(&argc, &argv); for (i = 1; i < argc; i++) { const char *a = argv[i]; diff --git a/qt-gui.cpp b/qt-gui.cpp index aa4765fe5..fb092a742 100644 --- a/qt-gui.cpp +++ b/qt-gui.cpp @@ -39,7 +39,7 @@ public: ~Translator() {} virtual QString translate(const char *context, const char *sourceText, - const char *disambiguation = NULL) const; + const char *disambiguation = NULL) const; }; Translator::Translator(QObject *parent): @@ -48,7 +48,7 @@ Translator::Translator(QObject *parent): } QString Translator::translate(const char *context, const char *sourceText, - const char *disambiguation) const + const char *disambiguation) const { return gettext(sourceText); } @@ -61,9 +61,6 @@ const char *existing_filename; void init_qt_ui(int *argcp, char ***argvp) { application->installTranslator(new Translator(application)); - QCoreApplication::setOrganizationName("hohndel"); - QCoreApplication::setOrganizationDomain("hohndel.org"); - QCoreApplication::setApplicationName("Subsurface"); MainWindow *window = new MainWindow(); window->show(); } @@ -80,6 +77,9 @@ void init_ui(int *argcp, char ***argvp) // [http://www.iana.org/assignments/character-sets/character-sets.xml] QTextCodec::setCodecForCStrings(QTextCodec::codecForMib(106)); #endif + QCoreApplication::setOrganizationName("Subsurface"); + QCoreApplication::setOrganizationDomain("subsurface.hohndel.org"); + QCoreApplication::setApplicationName("Subsurface"); QSettings settings; settings.beginGroup("GeneralSettings"); |