QFileDialog::setDirectory() and directory() should be symmetric
authorShawn Rutledge <shawn.rutledge@digia.com>
Fri, 27 Dec 2013 15:58:31 +0000 (16:58 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 6 Jan 2014 11:55:30 +0000 (12:55 +0100)
commite37616bbad5cadf07f6002f02da880c2630154cb
tree986cc7666d8b11533712fe81a7284c251b75bf9c
parentffac6ee2673a573a9db4f75a89c4c53251fa1304
QFileDialog::setDirectory() and directory() should be symmetric

QFileDialog::setDirectory() calls options->setInitialDirectory().
Then QFileDialogPrivate::helperPrepareShow() calls it again with the
result of QFileDialog::directory().  Assuming there are cases where
that's actually necessary, we need QFileDialog::directory() to return
the same one which was previously set in setDirectory().

Task-number: QTBUG-35779
Change-Id: Iac1f88c770ff1ef06a7f884f9a42d72674c967ba
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
src/widgets/dialogs/qfiledialog.cpp