diff options
| author | Johann Latocha | 2010-08-29 15:59:33 +0200 |
|---|---|---|
| committer | Johann Latocha | 2010-08-29 15:59:33 +0200 |
| commit | a483b1d5e98316c73c7e3080c693f1c8085e14b3 (patch) | |
| tree | 31412fb99655264e2fe9f5d8c2148caa0d91b2c2 /src | |
| parent | Feature #633 (diff) | |
| download | pvs-a483b1d5e98316c73c7e3080c693f1c8085e14b3.tar.gz pvs-a483b1d5e98316c73c7e3080c693f1c8085e14b3.tar.xz pvs-a483b1d5e98316c73c7e3080c693f1c8085e14b3.zip | |
Bug fixed: create config-dir
Diffstat (limited to 'src')
| -rw-r--r-- | src/gui/mainWindow.cpp | 3 | ||||
| -rwxr-xr-x | src/pvs.cpp | 4 | ||||
| -rw-r--r-- | src/pvsgui.cpp | 3 |
3 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/mainWindow.cpp b/src/gui/mainWindow.cpp index 9eeb719..bea636f 100644 --- a/src/gui/mainWindow.cpp +++ b/src/gui/mainWindow.cpp @@ -43,7 +43,10 @@ MainWindow::MainWindow(QWidget *parent) : ui->setupUi(this); if (!QFile::exists(_settings.fileName())) + { + QDir::root().mkpath(QFileInfo(_settings.fileName()).path()); QFile::copy("/etc/openslx/pvsmgr.conf", _settings.fileName()); + } ui->horizontalSlider->setValue(100); ui->label_2->setText("100"); diff --git a/src/pvs.cpp b/src/pvs.cpp index bcd2a48..20e9b3b 100755 --- a/src/pvs.cpp +++ b/src/pvs.cpp @@ -31,7 +31,11 @@ PVS::PVS() : QObject() { if (!QFile::exists(_settings.fileName())) + { + QDir::root().mkpath(QFileInfo(_settings.fileName()).path()); QFile::copy("/etc/openslx/pvs.conf", _settings.fileName()); + } + _pvsServerConnection = new PVSServerConnection(this); _locked = false; diff --git a/src/pvsgui.cpp b/src/pvsgui.cpp index 41a79b9..747d843 100644 --- a/src/pvsgui.cpp +++ b/src/pvsgui.cpp @@ -25,7 +25,10 @@ PVSGUI::PVSGUI(QWidget *parent) : setupUi(this); if (!QFile::exists(_settings.fileName())) + { + QDir::root().mkpath(QFileInfo(_settings.fileName()).path()); QFile::copy("/etc/openslx/pvsgui.conf", _settings.fileName()); + } _menu = new QMenu(this); _hostMenu = new QMenu(tr("Connect"), this); |
