aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/GuiClient/main.cpp6
-rw-r--r--examples/GuiClient/utils.cpp1
2 files changed, 5 insertions, 2 deletions
diff --git a/examples/GuiClient/main.cpp b/examples/GuiClient/main.cpp
index e5cf7e04..764c4fb3 100644
--- a/examples/GuiClient/main.cpp
+++ b/examples/GuiClient/main.cpp
@@ -33,11 +33,15 @@
int main(int argc, char *argv[])
{
+ QApplication a(argc, argv);
+
+ QApplication::setOrganizationName("QXmpp");
+ QApplication::setApplicationName("GuiClient");
+
QDir dir;
if(!dir.exists(getSettingsDir()))
dir.mkpath(getSettingsDir());
- QApplication a(argc, argv);
mainDialog cw;
cw.show();
return a.exec();
diff --git a/examples/GuiClient/utils.cpp b/examples/GuiClient/utils.cpp
index cfb5b029..ab1dfc14 100644
--- a/examples/GuiClient/utils.cpp
+++ b/examples/GuiClient/utils.cpp
@@ -102,7 +102,6 @@ QString presenceToStatusText(const QXmppPresence& presence)
QString getSettingsDir(const QString& bareJid)
{
QString dir = QDesktopServices::storageLocation(QDesktopServices::DataLocation);
- dir.append("/qxmpp");
if(bareJid.isEmpty())
return dir + "/";
else