diff options
| author | Felix Ernst <[email protected]> | 2022-10-13 22:13:00 +0200 |
|---|---|---|
| committer | Felix Ernst <[email protected]> | 2022-10-15 08:44:41 +0000 |
| commit | 75679f628a4052908112846b1e66bb06d90c32eb (patch) | |
| tree | 437921e9430b292fbb6b145683bb4dd0c04e9baa /src/selectionmode/bottombarcontentscontainer.cpp | |
| parent | 5be69f0daba256cd3faad0aaa16dee8447a76af4 (diff) | |
Fix dismiss button in selection mode paste bar
This one liner changes the signal that is emitted when the
"Dismiss" button is pressed on the Paste bottom bar in selection
mode. Before this commit, the `leaveSelectionModeRequested()`
signal was used but it had no effect because technically the
selection mode isn't active anymore when the paste bar is shown.
Everything works as expected if instead
`barVisibilityChangeRequested()` is emitted.
Diffstat (limited to 'src/selectionmode/bottombarcontentscontainer.cpp')
| -rw-r--r-- | src/selectionmode/bottombarcontentscontainer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/selectionmode/bottombarcontentscontainer.cpp b/src/selectionmode/bottombarcontentscontainer.cpp index 048e845a0..1634cf4c9 100644 --- a/src/selectionmode/bottombarcontentscontainer.cpp +++ b/src/selectionmode/bottombarcontentscontainer.cpp @@ -388,7 +388,7 @@ void BottomBarContentsContainer::addPasteContents() * So we first have to claim that we have different contents before requesting to leave selection mode. */ auto actuallyLeaveSelectionMode = [this]() { m_contents = BottomBar::Contents::CopyLocationContents; - Q_EMIT selectionModeLeavingRequested(); + Q_EMIT barVisibilityChangeRequested(false); }; auto *pasteButton = new QPushButton(this); |
