Diffusion KIO bff960d67162

Ensure that the model is set when resetResizing is called

Authored by fabiank on Apr 6 2018, 8:59 PM.

Description

Ensure that the model is set when resetResizing is called

Previously, KDirOperatorDetailView::setModel called resetResizing before
QTreeView::setModel was called. Thus, when resetResizing called model()
to obtain the model, it was still nullptr, leading to the following
warning: "QObject::connect: invalid null parameter"

As nothing we do in KDirOperatorDetailView::setModel depends on the
model not being set yet, we simply move the call to
KDirOperatorDetailView::setModel to the beginning of the method, to
ensure that model() returns the new model

Details

Committed
fabiankApr 6 2018, 8:59 PM
Differential Revision
D11998: Ensure that the model is set when resetResizing is called
Parents
R241:4de8abf55a90: Fix failing privilegejobtest
Branches
Unknown
Tags
Unknown