summaryrefslogtreecommitdiffstats
path: root/src/server/main.cpp
diff options
context:
space:
mode:
authorManuel Schneider2014-09-03 16:40:20 +0200
committerManuel Schneider2014-09-03 16:40:20 +0200
commit3e047a7cc4a6a507c91bd9279584fdd364841a2e (patch)
tree88596e103efa4baa83b13b3cbd172339b5548c16 /src/server/main.cpp
parentAdjust the system settings path in client (diff)
downloadpvs2-3e047a7cc4a6a507c91bd9279584fdd364841a2e.tar.gz
pvs2-3e047a7cc4a6a507c91bd9279584fdd364841a2e.tar.xz
pvs2-3e047a7cc4a6a507c91bd9279584fdd364841a2e.zip
Remove heavy unreadable debug messages. Reintent.
Diffstat (limited to 'src/server/main.cpp')
-rw-r--r--src/server/main.cpp82
1 files changed, 41 insertions, 41 deletions
diff --git a/src/server/main.cpp b/src/server/main.cpp
index 1d46d66..d77d77f 100644
--- a/src/server/main.cpp
+++ b/src/server/main.cpp
@@ -5,50 +5,50 @@
int main(int argc, char** argv)
{
- QString ipListUrl;
- if (argc != 2)
- {
- ipListUrl = "";
- } else {
- ipListUrl = argv[1];
- }
- QApplication app(argc, argv);
- app.setOrganizationName("openslx");
- app.setOrganizationDomain("openslx.org");
- app.setApplicationName("pvsmgr");
-
- qsrand((uint)QDateTime::currentMSecsSinceEpoch());
-
-
- // Set the global path of the settings
- QSettings::setPath(QSettings::IniFormat, QSettings::SystemScope, "/opt/");
-
- // Make sure settings directory exists
- USER_SETTINGS(settings);
- QFileInfo fi(settings.fileName());
- QDir path(fi.path());
- qDebug() << "User settings are in:" << settings.fileName();
- if (!path.exists())
- path.mkpath(path.absolutePath());
- // Now check if settings file exists. If not, copy system default (if available)
- if (!fi.exists())
+ QString ipListUrl;
+ if (argc != 2)
+ {
+ ipListUrl = "";
+ } else {
+ ipListUrl = argv[1];
+ }
+ QApplication app(argc, argv);
+ app.setOrganizationName("openslx");
+ app.setOrganizationDomain("openslx.org");
+ app.setApplicationName("pvsmgr");
+
+ qsrand((uint)QDateTime::currentMSecsSinceEpoch());
+
+
+ // Set the global path of the settings
+ QSettings::setPath(QSettings::IniFormat, QSettings::SystemScope, "/opt/");
+
+ // Make sure settings directory exists
+ USER_SETTINGS(settings);
+ QFileInfo fi(settings.fileName());
+ QDir path(fi.path());
+ qDebug() << "User settings are in:" << settings.fileName();
+ if (!path.exists())
+ path.mkpath(path.absolutePath());
+ // Now check if settings file exists. If not, copy system default (if available)
+ if (!fi.exists())
+ {
+ SYSTEM_SETTINGS(sys);
+ qDebug() << "System settings are in:" << sys.fileName();
+ QFileInfo sysfi(sys.fileName());
+ if (sysfi.exists())
{
- SYSTEM_SETTINGS(sys);
- qDebug() << "System settings are in:" << sys.fileName();
- QFileInfo sysfi(sys.fileName());
- if (sysfi.exists())
- {
- if (!QFile::copy(sys.fileName(), settings.fileName()))
- qDebug() << "Copying default settings from " << sys.fileName() << " to " << settings.fileName() << " failed.";
- }
+ if (!QFile::copy(sys.fileName(), settings.fileName()))
+ qDebug() << "Copying default settings from " << sys.fileName() << " to " << settings.fileName() << " failed.";
}
+ }
- // use system locale as language to translate gui
- QTranslator translator;
- translator.load(":pvsmgr");
- app.installTranslator(&translator);
+ // use system locale as language to translate gui
+ QTranslator translator;
+ translator.load(":pvsmgr");
+ app.installTranslator(&translator);
- MainWindow pvsmgr(ipListUrl);
- return app.exec();
+ MainWindow pvsmgr(ipListUrl);
+ return app.exec();
}