Plugin install: Fix state when going back from archive check

We can ignore the Archive result when the user goes back, and we need to
reset the warning label style when she checks another archive.

Change-Id: I76ce07d1a46875ac72696bcf7ab6c804d63b906b
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Eike Ziller
2020-06-23 10:26:13 +02:00
parent 9a4e65cc73
commit 1c30c868f1

View File

@@ -177,7 +177,8 @@ public:
m_tempDir = std::make_unique<TemporaryDirectory>("plugininstall");
m_data->extractedPath = FilePath::fromString(m_tempDir->path());
m_label->setText(PluginInstallWizard::tr("Checking archive..."));
// m_label->setType(InfoLabel::None);
m_label->setType(InfoLabel::None);
m_cancelButton->setVisible(true);
m_output->clear();
@@ -220,6 +221,8 @@ public:
{
// back button pressed
if (m_archive) {
m_cancelButton->disconnect();
m_archive->disconnect();
m_archive->cancel();
m_archive = nullptr; // we don't own it
}