From f01d802d4098bf69e6ebe26a85cde8ce3be6e0af Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Thu, 31 Dec 2015 14:50:43 +0100 Subject: [PATCH] No point in trying to reset and replace if nothing is selected. --- src/modules/partition/gui/ChoicePage.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules/partition/gui/ChoicePage.cpp b/src/modules/partition/gui/ChoicePage.cpp index a4ea3d11b..54f29a436 100644 --- a/src/modules/partition/gui/ChoicePage.cpp +++ b/src/modules/partition/gui/ChoicePage.cpp @@ -460,6 +460,9 @@ void ChoicePage::doReplaceSelectedPartition( const QModelIndex& current, const QModelIndex& previous ) { + if ( !current.isValid() ) + return; + ScanningDialog::run( QtConcurrent::run( [ = ] { QMutexLocker locker( &m_coreMutex );