QFileDialog::setDirectory(): remove unused local variable
Change-Id: I461679f7e47d6e98b3adda0114a5a3bd07a6a4d9 Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
This commit is contained in:
parent
b81a52dc38
commit
5abba00bef
@ -933,7 +933,6 @@ void QFileDialog::setDirectory(const QString &directory)
|
||||
{
|
||||
Q_D(QFileDialog);
|
||||
QString newDirectory = directory;
|
||||
QFileInfo info(directory);
|
||||
//we remove .. and . from the given path if exist
|
||||
if (!directory.isEmpty())
|
||||
newDirectory = QDir::cleanPath(directory);
|
||||
|
Loading…
Reference in New Issue
Block a user