1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 01:27:28 +00:00

(trunk, qt) #5195 'Qt: open folder: single file in folder' -- fixed with patch from basinilya

This commit is contained in:
Jordan Lee 2012-12-27 18:28:04 +00:00
parent a7d352269f
commit 29b2e02a91

View file

@ -648,8 +648,7 @@ TrMainWindow :: openFolder( )
const FileList files = tor->files();
const QString firstfile = files.at(0).filename;
int slashIndex = firstfile.indexOf('/');
if (files.size() > 1)
{
if (slashIndex > -1) {
path = path + "/" + firstfile.left(slashIndex);
}
#ifdef HAVE_OPEN_SELECT