diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-10-16 12:27:16 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-10-16 12:41:15 +0200 |
commit | ff1f5a93123db705419a60d8028c21c0dd7f4124 (patch) | |
tree | 23ea137704930cb560b64cbe2447c9c5571cb03d /src | |
parent | c67621a600de02dfc46fe5e4e5b1da73fcc6a37e (diff) |
Qt Designer: Fix updating of object names in the signal/slot editor
Fix invalid indexes emitted in update signal.
Fixes: QTBUG-79267
Change-Id: I5c99d8102d9be0e5296364697e85ee55f49147d9
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/designer/src/components/signalsloteditor/signalsloteditorwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/designer/src/components/signalsloteditor/signalsloteditorwindow.cpp b/src/designer/src/components/signalsloteditor/signalsloteditorwindow.cpp index f44c3cd5a..f8651877f 100644 --- a/src/designer/src/components/signalsloteditor/signalsloteditorwindow.cpp +++ b/src/designer/src/components/signalsloteditor/signalsloteditorwindow.cpp @@ -391,7 +391,7 @@ void ConnectionModel::connectionChanged(Connection *con) void ConnectionModel::updateAll() { - emit dataChanged(index(0, 0), index(rowCount(), columnCount())); + emit dataChanged(index(0, 0), index(rowCount() - 1, columnCount() - 1)); } } |