Don't use the QPointer::clear() function that was introduced in Qt5
authorMartin T. H. Sandsmark <martin.sandsmark@kde.org>
Tue, 1 Mar 2016 22:02:20 +0000 (23:02 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Mon, 5 Sep 2016 17:00:20 +0000 (19:00 +0200)
Closes GH-190.

src/uisupport/bufferview.cpp

index 30cf217..b879acd 100644 (file)
@@ -715,7 +715,7 @@ void BufferViewDock::onFilterReturnPressed()
 {
     if (_oldFocusItem) {
         _oldFocusItem->setFocus();
 {
     if (_oldFocusItem) {
         _oldFocusItem->setFocus();
-        _oldFocusItem.clear();
+        _oldFocusItem = 0;
     }
 
     if (!config()->showSearch()) {
     }
 
     if (!config()->showSearch()) {
@@ -763,7 +763,7 @@ bool BufferViewDock::eventFilter(QObject *object, QEvent *event)
 
        if (_oldFocusItem) {
            _oldFocusItem->setFocus();
 
        if (_oldFocusItem) {
            _oldFocusItem->setFocus();
-           _oldFocusItem.clear();
+           _oldFocusItem = 0;
        }
 
        return true;
        }
 
        return true;