Summary: | Mac: sortedDocumentList menu doesn't change focus | ||
---|---|---|---|
Product: | [Developer tools] kdevplatform | Reporter: | RJVB <rjvbertin> |
Component: | sublime | Assignee: | kdevelop-bugs-null |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | simonandric5 |
Priority: | NOR | ||
Version: | git master | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | macOS | ||
Latest Commit: | https://commits.kde.org/kdevplatform/4972dd5e10b070f815822943d9b9efe719ebbcd3 | Version Fixed In: | 5.1.2 |
Sentry Crash Report: |
Description
RJVB
2017-07-14 12:09:41 UTC
ping? > I haven't noticed any other effect of that modification; is it still required elsewhere (IOW, can we just remove it unconditionally)? The signal-blocking code was added here: https://commits.kde.org/kdevplatform/e626a9715b3c79dc06ce413cac57203c13868823 Can you check the bug it tries to fix is still gone after removing the QSignalBlocker unconditionally? Note: This discussion should happen on Phabricator. Git commit 4972dd5e10b070f815822943d9b9efe719ebbcd3 by René J.V. Bertin. Committed on 07/08/2017 at 14:46. Pushed by rjvbb into branch 'master'. fix sortedDocumentList menu not changing focus on Mac Sublime::Container::setCurrentWidget() used a QSignalBlocker to prevent MainWindow::activateView() from being called twice. As a result, the focus wasn't updated when changing documents with the sortedDocumentList menu widget on Mac. This commit fixes that side-effect by using a simpler approach where both functions only take action when setting/activating a widget/view that is not already current. Differential Revision: https://phabricator.kde.org/D7179 M +5 -7 sublime/container.cpp M +1 -1 sublime/mainwindow.cpp https://commits.kde.org/kdevplatform/4972dd5e10b070f815822943d9b9efe719ebbcd3 |