Changeset View
Changeset View
Standalone View
Standalone View
projectbuilders/qmakebuilder/qmakebuilderpreferences.cpp
Show First 20 Lines • Show All 117 Lines • ▼ Show 20 Line(s) | 117 | if (m_chooserUi->validate(&errormsg)) { | |||
---|---|---|---|---|---|
118 | // data is valid: save, once in the build dir's data and also as current data | 118 | // data is valid: save, once in the build dir's data and also as current data | ||
119 | m_chooserUi->saveConfig(); | 119 | m_chooserUi->saveConfig(); | ||
120 | KConfigGroup config(m_project->projectConfiguration(), QMakeConfig::CONFIG_GROUP); | 120 | KConfigGroup config(m_project->projectConfiguration(), QMakeConfig::CONFIG_GROUP); | ||
121 | m_chooserUi->saveConfig(config); | 121 | m_chooserUi->saveConfig(config); | ||
122 | config.writeEntry(QMakeConfig::BUILD_FOLDER, m_chooserUi->buildDir()); | 122 | config.writeEntry(QMakeConfig::BUILD_FOLDER, m_chooserUi->buildDir()); | ||
123 | } else { | 123 | } else { | ||
124 | // invalid data: message box | 124 | // invalid data: message box | ||
125 | KMessageBox::error(nullptr, errormsg, "Data is invalid!"); | 125 | KMessageBox::error(nullptr, errormsg, "Data is invalid!"); | ||
126 | // FIXME dialog behaves like if save really happend (dialog closes if user click ok) even if changed signal is | 126 | // FIXME dialog behaves like if save really happened (dialog closes if user click ok) even if changed signal is | ||
127 | // emitted | 127 | // emitted | ||
128 | } | 128 | } | ||
129 | } | 129 | } | ||
130 | 130 | | |||
131 | void QMakeBuilderPreferences::validate() | 131 | void QMakeBuilderPreferences::validate() | ||
132 | { | 132 | { | ||
133 | m_chooserUi->validate(); | 133 | m_chooserUi->validate(); | ||
134 | } | 134 | } | ||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |