Fix runtime warning on disconnect() called from QObject dtor

Review Request #128620 - Created Aug. 7, 2016 and submitted

Information
David Faure
ktexteditor
master
Reviewers
kate
QObject::disconnect: No such signal QObject::modelReset() in katecompletionwidget.cpp:1325

My solution is to use different code paths for unregistering
a real completion object, and for unregistering a destroyed
completion object (which has already been reduced to a QObject).

This warning was showing up e.g. at the end of ./autotests/indenttest testCstyle:visib2

Milian Wolff
Christoph Cullmann
David Faure
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit df53bac50292656124b0fb6c246141ff50d285a0 by David Faure to branch master.
Loading...