mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
Merge pull request #2816 from Laserlicht/folder
This commit is contained in:
@@ -345,7 +345,10 @@ void SelectionTab::clickDouble(const Point & cursorPosition)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
if(itemIndex >= 0 && curItems[itemIndex]->isFolder)
|
if(itemIndex >= 0 && curItems[itemIndex]->isFolder)
|
||||||
|
{
|
||||||
|
select(position);
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if(getLine() != -1) //double clicked scenarios list
|
if(getLine() != -1) //double clicked scenarios list
|
||||||
{
|
{
|
||||||
@@ -370,6 +373,8 @@ void SelectionTab::showPopupWindow(const Point & cursorPosition)
|
|||||||
|
|
||||||
GH.windows().createAndPushWindow<CMapInfoTooltipBox>(text, ResourcePath(curItems[py]->fileURI), tabType);
|
GH.windows().createAndPushWindow<CMapInfoTooltipBox>(text, ResourcePath(curItems[py]->fileURI), tabType);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
CRClickPopup::createAndPush(curItems[py]->folderName);
|
||||||
}
|
}
|
||||||
|
|
||||||
auto SelectionTab::checkSubfolder(std::string path)
|
auto SelectionTab::checkSubfolder(std::string path)
|
||||||
|
Reference in New Issue
Block a user