Make sure that old values of namespace delimiters in the configuration get

overwrtiten when the list of delimiters is set to an empty string.

svn path=/trunk/KDE/kdepim/; revision=965617
wilder-work
Bertjan Broeksema 17 years ago
parent 9c874090d3
commit 42fa44ec78
  1. 5
      accountdialog.cpp

@ -1472,6 +1472,11 @@ void NamespaceEditDialog::slotRemoveEntry( int id )
if ( edit->isModified() ) {
mDelimMap.remove( edit->lastText() );
}
if ( mDelimMap.isEmpty() ) {
// Make sure that old values get overwritten in the config when the map is
// empty. It is needed to add an empty item for that.
mDelimMap.insert( QString(), QString() );
}
mLineEditMap.remove( id );
mainWidget()->layout()->removeWidget( edit );
edit->close();

Loading…
Cancel
Save