diff --git a/src/accountinfo.cpp b/src/accountinfo.cpp --- a/src/accountinfo.cpp +++ b/src/accountinfo.cpp @@ -38,6 +38,7 @@ #include #include #include +#include AccountInfo::AccountInfo(AccountModel* model, QWidget* parent, Qt::WindowFlags f) : QWidget(parent, f) @@ -103,6 +104,10 @@ return; } + if (!m_infoToSave.isEmpty()) { + if (KMessageBox::questionYesNo(this,i18n("You modified the current user, do want to save that change now ?"),QString(),KStandardGuiItem::save(),KStandardGuiItem::discard())==KMessageBox::Yes) save(); + } + m_index = index; m_infoToSave.clear(); loadFromModel();