From 616575911f5bb1a968159d853c54738817032fbf Mon Sep 17 00:00:00 2001 From: sledgehammer999 Date: Fri, 30 Nov 2012 01:38:01 +0200 Subject: [PATCH] Improve the display of paths in the 'Add new torrent' dialog. --- src/addnewtorrentdialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/addnewtorrentdialog.cpp b/src/addnewtorrentdialog.cpp index a93ce4875..eeac622ba 100644 --- a/src/addnewtorrentdialog.cpp +++ b/src/addnewtorrentdialog.cpp @@ -225,7 +225,7 @@ bool AddNewTorrentDialog::loadTorrent(const QString& torrent_path, const QString QString single_file_relpath = misc::toQStringU(m_torrentInfo->file_at(0).path.string()); #endif for (int i=0; isave_path_combo->count()-1; ++i) { - ui->save_path_combo->setItemText(i, QDir(ui->save_path_combo->itemText(i)).absoluteFilePath(single_file_relpath)); + ui->save_path_combo->setItemText(i, fsutils::toDisplayPath(QDir(ui->save_path_combo->itemText(i)).absoluteFilePath(single_file_relpath))); } }