Commit e0279c74 authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Designer: Update editor before entering edit mode.

Adapt to changed semantics of ModeManager::currentModeAboutToChange.

Task-number: QTCREATORBUG-4051
parent 57517982
......@@ -186,8 +186,8 @@ void FormEditorStack::modeAboutToChange(Core::IMode *m)
if (Designer::Constants::Internal::debug && m)
qDebug() << "FormEditorStack::modeAboutToChange" << m->id();
// Sync the editor when leaving design mode
if (m && m->id() == QLatin1String(Core::Constants::MODE_DESIGN))
// Sync the editor when entering edit mode
if (m && m->id() == QLatin1String(Core::Constants::MODE_EDIT))
foreach(const EditorData &data, m_formEditors)
Supports Markdown
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