(trunk, qt) #5195 'Qt: open folder: single file in folder' -- fixed with patch from basinilya
This commit is contained in:
parent
a7d352269f
commit
29b2e02a91
|
@ -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 New Issue