From: Martin T. H. Sandsmark Date: Tue, 1 Mar 2016 22:02:20 +0000 (+0100) Subject: Don't use the QPointer::clear() function that was introduced in Qt5 X-Git-Tag: travis-deploy-test~464 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=52cb14f784374a0739a3c7d029a687dcb5b377e9;ds=sidebyside Don't use the QPointer::clear() function that was introduced in Qt5 Closes GH-190. --- diff --git a/src/uisupport/bufferview.cpp b/src/uisupport/bufferview.cpp index 30cf217b..b879acd3 100644 --- a/src/uisupport/bufferview.cpp +++ b/src/uisupport/bufferview.cpp @@ -715,7 +715,7 @@ void BufferViewDock::onFilterReturnPressed() { if (_oldFocusItem) { _oldFocusItem->setFocus(); - _oldFocusItem.clear(); + _oldFocusItem = 0; } if (!config()->showSearch()) { @@ -763,7 +763,7 @@ bool BufferViewDock::eventFilter(QObject *object, QEvent *event) if (_oldFocusItem) { _oldFocusItem->setFocus(); - _oldFocusItem.clear(); + _oldFocusItem = 0; } return true;