Commit baf04030 authored by Laurent Montel's avatar Laurent Montel 😁

Show it just when it's a imap folder

parent fcc71931
......@@ -229,18 +229,18 @@ void CollectionGeneralPage::init( const Akonadi::Collection &collection )
mContentsComboBox->setEnabled( false );
}
}
// Kolab incidences-for annotation.
// Show incidences-for combobox if the contents type can be changed (new folder),
// or if it's set to calendar or task (existing folder)
const bool folderTypeComboboxEnabled = ( folderType == CollectionTypeUtil::ContentsTypeCalendar || folderType == CollectionTypeUtil::ContentsTypeTask );
++row;
mIncidencesForComboBox = new ContentsTypeComboBox(this);
gl->addWidget(mIncidencesForComboBox, row, 0, 1, 1);
// Kolab incidences-for annotation.
// Show incidences-for combobox if the contents type can be changed (new folder),
// or if it's set to calendar or task (existing folder)
const bool folderTypeComboboxEnabled = ( folderType == CollectionTypeUtil::ContentsTypeCalendar || folderType == CollectionTypeUtil::ContentsTypeTask );
++row;
mIncidencesForComboBox = new ContentsTypeComboBox(this);
gl->addWidget(mIncidencesForComboBox, row, 0, 1, 1);
mIncidencesForComboBox->setCurrentIndex( incidencesFor );
mIncidencesForComboBox->setEnabled(folderTypeComboboxEnabled);
}
mIncidencesForComboBox->setCurrentIndex( incidencesFor );
mIncidencesForComboBox->setEnabled(folderTypeComboboxEnabled);
if ( PimCommon::Util::isImapResource(collection.resource()) ) {
mSharedSeenFlagsCheckBox = new QCheckBox( this );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment