Commit 1b41f96e authored by Elvis Angelaccio's avatar Elvis Angelaccio

Show extraction dialog only after archive has been loaded

Otherwise the dialog is open when the archive instance is still not
valid and displays a broken subfolder name.

Tested with a huge archive, e.g. `ark linux.tar.xz --dialog`
parent 1f075366
......@@ -678,10 +678,6 @@ bool Part::openFile()
m_infoPanel->setIndex(QModelIndex());
if (arguments().metaData()[QStringLiteral("showExtractDialog")] == QLatin1String("true")) {
QTimer::singleShot(0, this, &Part::slotShowExtractionDialog);
}
const QString password = arguments().metaData()[QStringLiteral("encryptionPassword")];
if (!password.isEmpty()) {
m_model->encryptArchive(password,
......@@ -836,6 +832,10 @@ void Part::slotLoadingFinished(KJob *job)
displayMsgWidget(KMessageWidget::Warning, xi18nc("@info", "Ark does not currently support ISO files with UDF filesystem."));
}
}
if (arguments().metaData()[QStringLiteral("showExtractDialog")] == QLatin1String("true")) {
QTimer::singleShot(0, this, &Part::slotShowExtractionDialog);
}
}
void Part::setReadyGui()
......
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