Commit 344f9e9e authored by Christoffer Ackelman's avatar Christoffer Ackelman

QT: CTRL+E now toggles view/edit mode instead of setting edit mode.

parent 1a44668d
......@@ -464,9 +464,12 @@ void WFoeQtWidget::activate_edit_togg()
{
if (sender() != foe->edit_togg) {
foe->edit_togg->setChecked(true);
foe->edit_was_checked = true;
} else {
foe->edit_was_checked = !foe->edit_was_checked;
}
foe->activate_edit_togg(true);
foe->activate_edit_togg(foe->edit_was_checked);
}
void WFoeQtWidget::valchanged_textinput()
......
......@@ -113,6 +113,7 @@ public:
QAction* select_cp_nextup;
QAction* select_cp_nextdown;
CoWowFocusTimerQt focustimer;
bool edit_was_checked = false;
WFoeQt(void* f_parent_ctx, const char* f_name, pwr_tObjid plcprogram,
ldh_tWBContext ldhwbctx, ldh_tSesContext ldhsesctx, int f_map_window,
......
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