QFileDialog: Fix deprecation warning
Fix:
dialogs/qfiledialog.cpp:3698:43: warning: ‘QDir& QDir::operator=(const QString&)’ is deprecated: Use QDir::setPath() instead [-Wdeprecated-declarations]
dir = getEnvironmentVariable(path2);
Change-Id: If8d93374cf2900974bcbd14caf2b1ef488409518
Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de>
bb10
parent
6a7e2fedef
commit
201dde1f31
|
|
@ -3695,7 +3695,7 @@ void QFileDialogPrivate::_q_goToDirectory(const QString &path)
|
|||
}
|
||||
QDir dir(path2);
|
||||
if (!dir.exists())
|
||||
dir = getEnvironmentVariable(path2);
|
||||
dir.setPath(getEnvironmentVariable(path2));
|
||||
|
||||
if (dir.exists() || path2.isEmpty() || path2 == model->myComputer().toString()) {
|
||||
_q_enterDirectory(index);
|
||||
|
|
|
|||
Loading…
Reference in New Issue