GUI: Convert path to native separators before copying it.

Ticket #2424 (Windows GUI: "Copy full path" doesn't copy the visible full path if it has been changed in preferences)

We keep paths internally with / separator and only convert to native
separators (for Windows) when showing them. Conversion was missing
from path copying function.
This commit is contained in:
Kimmo Varis 2011-01-06 18:32:04 +02:00
parent 37b1f7c296
commit 2a93aa9fce
1 changed files with 1 additions and 1 deletions

View File

@ -719,7 +719,7 @@ void ResultsTree::CopyPath(QStandardItem *target, bool fullPath)
//Replace (file) with filename
QString file = data["file"].toString();
pathStr = file;
pathStr = QDir::toNativeSeparators(file);
if (!fullPath)
{
QFileInfo fi(pathStr);