mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-03-18 09:18:23 +01:00
empty editor pane". Double click on the rule number should not do anything, but double click on rule options, comment and other fields should open the editor. Change done for #2566 broke this.
This commit is contained in:
parent
8a47a44a3e
commit
ddd45fb426
@ -1,3 +1,12 @@
|
||||
2011-07-20 vadim <vadim@netcitadel.com>
|
||||
|
||||
* RuleSetView.cpp (itemDoubleClicked): fixes #2566, #2618 Fix for
|
||||
the regression introduced when I worked on #2566 "Double-clicking
|
||||
on rule when program first starts results in empty editor pane".
|
||||
Double click on the rule number should not do anything, but double
|
||||
click on rule options, comment and other fields should open the
|
||||
editor. Change done for #2566 broke this.
|
||||
|
||||
2011-07-20 Vadim Kurland <vadim@netcitadel.com>
|
||||
|
||||
* ObjectMatcher.cpp (dispatch): removed optimization in
|
||||
|
||||
@ -879,7 +879,8 @@ void RuleSetView::addRowMenuItemsToMenu(QMenu *menu) const
|
||||
void RuleSetView::itemDoubleClicked(const QModelIndex& index)
|
||||
{
|
||||
if (!index.isValid()) return;
|
||||
if (index.row()<0) return;
|
||||
if (index.row() < 0) return;
|
||||
if (index.column() == 0) return; // double click on rule number does nothing
|
||||
|
||||
// ColDesc colDesc = index.data(Qt::UserRole).value<ColDesc>();
|
||||
// if (fwosm->selectedObject!=NULL)
|
||||
@ -909,10 +910,10 @@ void RuleSetView::editSelected(const QModelIndex& index)
|
||||
mw,
|
||||
new showObjectInTreeEvent(
|
||||
project->getFileName(), fwosm->selectedObject->getId()));
|
||||
|
||||
if (!mw->isEditorVisible()) mw->showEditor();
|
||||
switchObjectInEditor(index);
|
||||
}
|
||||
|
||||
if (!mw->isEditorVisible()) mw->showEditor();
|
||||
switchObjectInEditor(index);
|
||||
}
|
||||
|
||||
void RuleSetView::editSelected()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user