QFileDialog::setDirectory(): remove unused local variable

Change-Id: I461679f7e47d6e98b3adda0114a5a3bd07a6a4d9
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
This commit is contained in:
Maks Naumov 2015-01-31 22:04:25 +02:00
parent b81a52dc38
commit 5abba00bef

View File

@ -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);