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:
parent
a7d352269f
commit
29b2e02a91
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue