(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
1 changed files with 1 additions and 2 deletions

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