1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-03 11:24:10 +01:00

OP-864 Fixed some debug logging cosmetic problems.

This commit is contained in:
Fredrik Arvidsson 2013-03-04 20:38:16 +01:00
parent 82a89700e1
commit b6746259c8

View File

@ -288,29 +288,29 @@ void MainWindow::extensionsInitialized()
#endif #endif
directory.cd("default_configurations"); directory.cd("default_configurations");
qDebug() << "Looking for configuration files in: " << directory.absolutePath(); qDebug() << "Looking for configuration files in:" << directory.absolutePath();
QString filename; QString filename;
if(!commandLine.isEmpty() && QFile::exists(directory.absolutePath() + QDir::separator() + commandLine)) { if(!commandLine.isEmpty() && QFile::exists(directory.absolutePath() + QDir::separator() + commandLine)) {
filename = directory.absolutePath() + QDir::separator() + commandLine; filename = directory.absolutePath() + QDir::separator() + commandLine;
qDebug() << "Configuration file " << filename << " specified on command line will be loaded."; qDebug() << "Configuration file" << filename << "specified on command line will be loaded.";
} }
else if(QFile::exists(directory.absolutePath() + QDir::separator() + DEFAULT_CONFIG_FILENAME)) { else if(QFile::exists(directory.absolutePath() + QDir::separator() + DEFAULT_CONFIG_FILENAME)) {
filename = directory.absolutePath() + QDir::separator() + DEFAULT_CONFIG_FILENAME; filename = directory.absolutePath() + QDir::separator() + DEFAULT_CONFIG_FILENAME;
qDebug() << "Default configuration file " << filename << " will be loaded."; qDebug() << "Default configuration file" << filename << "will be loaded.";
} }
else { else {
qDebug() << "Default configuration file " << directory.absolutePath() << QDir::separator() << DEFAULT_CONFIG_FILENAME << " was not found."; qDebug() << "Default configuration file " << directory.absolutePath() << QDir::separator() << DEFAULT_CONFIG_FILENAME << "was not found.";
importSettings *dialog = new importSettings(this); importSettings *dialog = new importSettings(this);
dialog->loadFiles(directory.absolutePath()); dialog->loadFiles(directory.absolutePath());
dialog->exec(); dialog->exec();
filename = dialog->choosenConfig(); filename = dialog->choosenConfig();
delete dialog; delete dialog;
qDebug() << "Configuration file " << filename << " was selected and will be loaded."; qDebug() << "Configuration file" << filename << "was selected and will be loaded.";
} }
qs = new QSettings(filename, XmlConfig::XmlSettingsFormat); qs = new QSettings(filename, XmlConfig::XmlSettingsFormat);
qDebug() << "Configuration file " << filename << " was loaded."; qDebug() << "Configuration file" << filename << "was loaded.";
} }
qs->beginGroup("General"); qs->beginGroup("General");