|
|
@ -963,8 +963,9 @@ void UBDocumentController::importFile() |
|
|
|
if (group) |
|
|
|
if (group) |
|
|
|
{ |
|
|
|
{ |
|
|
|
QString defaultPath = UBSettings::settings()->lastImportFilePath->get().toString(); |
|
|
|
QString defaultPath = UBSettings::settings()->lastImportFilePath->get().toString(); |
|
|
|
QString filePath = QFileDialog::getOpenFileName(mParentWidget, tr("Open Supported File"), |
|
|
|
if(defaultPath.isDetached()) |
|
|
|
defaultPath, docManager->importFileFilter()); |
|
|
|
defaultPath = UBSettings::settings()->userDocumentDirectory(); |
|
|
|
|
|
|
|
QString filePath = QFileDialog::getOpenFileName(mParentWidget, tr("Open Supported File"), defaultPath, docManager->importFileFilter()); |
|
|
|
|
|
|
|
|
|
|
|
QApplication::setOverrideCursor(QCursor(Qt::WaitCursor)); |
|
|
|
QApplication::setOverrideCursor(QCursor(Qt::WaitCursor)); |
|
|
|
QApplication::processEvents(); |
|
|
|
QApplication::processEvents(); |
|
|
|