Commit dd02e92b authored by Victor Yacovlev's avatar Victor Yacovlev

Fixed initial courses search path

parent 13bb6fea
......@@ -329,7 +329,9 @@ void MainWindowTask::loadCourse()
QDir resDir=interface->myResourcesDir();
resDir.cdUp();
resDir.cd("courses");
if(!chD.exists())dir=resDir.canonicalPath();
if(0 == dir.length() || !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