Changeset 14719


Ignore:
Timestamp:
Mar 15, 2016, 6:04:49 AM (6 years ago)
Author:
mikedld
Message:

Fix dropping .torrent files into main window on Windows

Previously used QUrl::fromPercentEncoding() leads to paths like
"/C:/test/a.torrent" which obviously aren't valid filesystem paths.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/qt/MainWindow.cc

    r14599 r14719  
    14451445          const QUrl url (key);
    14461446
    1447           if (url.scheme () == QLatin1String ("file"))
    1448             key = QUrl::fromPercentEncoding (url.path().toUtf8());
     1447          if (url.isLocalFile ())
     1448            key = url.toLocalFile ();
    14491449
    14501450          qApp->addTorrent (key);
Note: See TracChangeset for help on using the changeset viewer.