mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 10:55:46 -05:00
Only enable selection when it makes sense
This commit is contained in:
parent
1c279dac24
commit
0c9d64878a
1 changed files with 8 additions and 0 deletions
|
@ -496,7 +496,9 @@ ChoicePage::updateDeviceStatePreview( Device* currentDevice )
|
|||
model->setParent( preview );
|
||||
|
||||
preview->setModel( model );
|
||||
preview->setSelectionMode( QAbstractItemView::NoSelection );
|
||||
previewLabels->setModel( model );
|
||||
previewLabels->setSelectionMode( QAbstractItemView::NoSelection );
|
||||
|
||||
layout->addWidget( preview );
|
||||
layout->addWidget( previewLabels );
|
||||
|
@ -554,6 +556,12 @@ ChoicePage::updateActionChoicePreview( Device* currentDevice, ChoicePage::Choice
|
|||
previewLabels->setSelectionModel( preview->selectionModel() );
|
||||
sm->deleteLater();
|
||||
|
||||
if ( choice == Erase )
|
||||
{
|
||||
preview->setSelectionMode( QAbstractItemView::NoSelection );
|
||||
previewLabels->setSelectionMode( QAbstractItemView::NoSelection );
|
||||
}
|
||||
|
||||
layout->addWidget( preview );
|
||||
layout->addWidget( previewLabels );
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue