forked from qt-creator/qt-creator
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:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user