Debug info.
This commit is contained in:
parent
e2f9a5b93c
commit
a8f06d00d0
@ -453,6 +453,8 @@ ChoicePage::applyActionChoice( ChoicePage::Choice choice )
|
|||||||
connect( m_beforePartitionBarsView->selectionModel(), &QItemSelectionModel::currentRowChanged,
|
connect( m_beforePartitionBarsView->selectionModel(), &QItemSelectionModel::currentRowChanged,
|
||||||
this, [ this ]( const QModelIndex& current, const QModelIndex& previous )
|
this, [ this ]( const QModelIndex& current, const QModelIndex& previous )
|
||||||
{
|
{
|
||||||
|
cDebug() << Q_FUNC_INFO;
|
||||||
|
cDebug() << "lambda in applyActionChoice for Replace, on selection changed.";
|
||||||
if ( m_core->isDirty() )
|
if ( m_core->isDirty() )
|
||||||
m_core->clearJobs();
|
m_core->clearJobs();
|
||||||
|
|
||||||
@ -461,10 +463,13 @@ ChoicePage::applyActionChoice( ChoicePage::Choice choice )
|
|||||||
QString partPath = current.data( PartitionModel::PartitionPathRole ).toString();
|
QString partPath = current.data( PartitionModel::PartitionPathRole ).toString();
|
||||||
Partition* partition = KPMHelpers::findPartitionByPath( { selectedDevice() },
|
Partition* partition = KPMHelpers::findPartitionByPath( { selectedDevice() },
|
||||||
partPath );
|
partPath );
|
||||||
|
cDebug() << "partPath is" << partPath;
|
||||||
if ( partition )
|
if ( partition )
|
||||||
PartitionActions::doReplacePartition( m_core,
|
PartitionActions::doReplacePartition( m_core,
|
||||||
selectedDevice(),
|
selectedDevice(),
|
||||||
partition );
|
partition );
|
||||||
|
else
|
||||||
|
cDebug() << "Partition is nullptr!";
|
||||||
} );
|
} );
|
||||||
break;
|
break;
|
||||||
case NoChoice:
|
case NoChoice:
|
||||||
|
Loading…
Reference in New Issue
Block a user