<table><tr><td style="">fabiank created this revision.<br />Restricted Application added a project: Frameworks.<br />Restricted Application added a subscriber: Frameworks.<br />fabiank requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D11998">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Previously, KDirOperatorDetailView::setModel called resetResizing before<br />
QTreeView::setModel was called. Thus, when resetResizing called model()<br />
to obtain the model, it was still nullptr, leading to the following<br />
warning: "QObject::connect: invalid null parameter"</p>

<p>As nothing we do in KDirOperatorDetailView::setModel depends on the<br />
model not being set yet, we simply move the call to<br />
KDirOperatorDetailView::setModel to the beginning of the method, to<br />
ensure that model() returns the new model</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Run any application which uses the KDE file dialog. Start opening a file, then<br />
switch the file dialog to the detailed or detailed tree mode. Without the patch,<br />
the warning should appear. Applying the patch removes the warning.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R241 KIO</div></div></div><br /><div><strong>BRANCH</strong><div><div>fixConnectWarning</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D11998">https://phabricator.kde.org/D11998</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/filewidgets/kdiroperatordetailview.cpp</div></div></div><br /><div><strong>To: </strong>fabiank<br /><strong>Cc: </strong>Frameworks, michaelh, ngraham, bruns<br /></div>