From be40ba82147eab1f10a4f96a7a3cfef5f4a520bb Mon Sep 17 00:00:00 2001 From: Manjeet Dahiya Date: Fri, 8 Oct 2010 06:15:44 +0000 Subject: use applicationName and organizationName --- examples/GuiClient/main.cpp | 6 +++++- examples/GuiClient/utils.cpp | 1 - 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'examples/GuiClient') 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 -- cgit v1.2.3