Commit e33f4c1e authored by Denis Khachko's avatar Denis Khachko

no message

parent 0594c287
......@@ -326,7 +326,9 @@ void MainWindowTask::loadCourse()
ui->splitter->setEnabled(true);
QString dir=settings->value("Directories/Kurs","").toString();
QDir chD(dir);
if(!chD.exists())dir=QDir::homePath();
QDir resDir=interface->myResourcesDir();
resDir.cdUp();
if(!chD.exists())dir=resDir.canonicalPath();
// QFileDialog dialog(this,trUtf8("Открыть файл"),dir, "(*.kurs.xml *.work.xml)");
// dialog.setAcceptMode(QFileDialog::AcceptOpen);
// if(!dialog.exec())return;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment