[partition] Drop now-unneeded debugging

This commit is contained in:
Adriaan de Groot 2018-05-15 08:13:15 -04:00
parent 310555f16b
commit 255a99d714

View File

@ -60,7 +60,6 @@ standardMountPoints(QComboBox& combo, const QString& selected)
QString QString
selectedMountPoint(QComboBox& combo) selectedMountPoint(QComboBox& combo)
{ {
cDebug() << "Selected mount point" << combo.currentIndex() << combo.currentText();
if ( combo.currentIndex() == 0 ) if ( combo.currentIndex() == 0 )
return QString(); return QString();
return combo.currentText(); return combo.currentText();
@ -69,7 +68,6 @@ selectedMountPoint(QComboBox& combo)
void void
setSelectedMountPoint(QComboBox& combo, const QString& selected) setSelectedMountPoint(QComboBox& combo, const QString& selected)
{ {
cDebug() << "Setting mount point" << selected;
if ( selected.isEmpty() ) if ( selected.isEmpty() )
combo.setCurrentIndex( 0 ); // (no mount point) combo.setCurrentIndex( 0 ); // (no mount point)
else else
@ -77,11 +75,9 @@ setSelectedMountPoint(QComboBox& combo, const QString& selected)
for ( int i = 0; i < combo.count(); ++i ) for ( int i = 0; i < combo.count(); ++i )
if ( selected == combo.itemText( i ) ) if ( selected == combo.itemText( i ) )
{ {
cDebug() << " .. found at index" << i;
combo.setCurrentIndex( i ); combo.setCurrentIndex( i );
return; return;
} }
cDebug() << " .. new item";
combo.addItem( selected ); combo.addItem( selected );
combo.setCurrentIndex( combo.count() - 1); combo.setCurrentIndex( combo.count() - 1);
} }