diff options
author | Sérgio Martins <sergio.martins@kdab.com> | 2016-01-09 19:58:06 +0000 |
---|---|---|
committer | Sérgio Martins <iamsergio@gmail.com> | 2016-01-10 12:49:00 +0000 |
commit | 1bbf7fb4e39fd1382e3956e2bb5fbebaca01cf53 (patch) | |
tree | b3115e46c4f55134b06f5b0d43542a265db6d54e /src/widgets/kernel | |
parent | 000c4358ceca78dc962a8ac287afdbb54e8b9837 (diff) |
Fix a few container detachments
Change-Id: I018a1fe4bdbbe42b683793d7ddbf19f464d6e3b0
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'src/widgets/kernel')
-rw-r--r-- | src/widgets/kernel/qdesktopwidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/kernel/qdesktopwidget.cpp b/src/widgets/kernel/qdesktopwidget.cpp index a1c2aebbe6..2ddd025239 100644 --- a/src/widgets/kernel/qdesktopwidget.cpp +++ b/src/widgets/kernel/qdesktopwidget.cpp @@ -203,7 +203,7 @@ int QDesktopWidget::screenNumber(const QWidget *w) const return primaryScreen(); // If there is more than one virtual desktop - if (screens.count() != screens.first()->virtualSiblings().count()) { + if (screens.count() != screens.constFirst()->virtualSiblings().count()) { // Find the root widget, get a QScreen from it and use the // virtual siblings for checking the window position. const QWidget *root = w; |