Commit 17f7fe7a authored by Fabio Bas's avatar Fabio Bas
Browse files

Don't lock the UI if the loaded file was not readable

parent 1edc34f0
......@@ -221,13 +221,13 @@ void LoadSetsPage::readSetsFromByteArray(QByteArray data)
void LoadSetsPage::importFinished()
{
if(watcher.future().result())
{
wizard()->enableButtons();
setEnabled(true);
progressLabel->hide();
progressBar->hide();
if(watcher.future().result())
{
wizard()->next();
} else {
QMessageBox::critical(this, tr("Error"), tr("The file was retrieved successfully, but it does not contain any sets data."));
......
Supports Markdown
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