mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-03 13:01:33 +02:00
format
This commit is contained in:
parent
2b093b8850
commit
2d9bb34825
@ -357,13 +357,13 @@ void SelectionTab::showPopupWindow(const Point & cursorPosition)
|
|||||||
|
|
||||||
auto SelectionTab::checkSubfolder(std::string path)
|
auto SelectionTab::checkSubfolder(std::string path)
|
||||||
{
|
{
|
||||||
struct Ret
|
struct Ret
|
||||||
{
|
{
|
||||||
std::string folderName;
|
std::string folderName;
|
||||||
std::string baseFolder;
|
std::string baseFolder;
|
||||||
bool parentExists;
|
bool parentExists;
|
||||||
bool fileInFolder;
|
bool fileInFolder;
|
||||||
} ret;
|
} ret;
|
||||||
|
|
||||||
ret.parentExists = (curFolder != "");
|
ret.parentExists = (curFolder != "");
|
||||||
ret.fileInFolder = false;
|
ret.fileInFolder = false;
|
||||||
@ -392,7 +392,7 @@ auto SelectionTab::checkSubfolder(std::string path)
|
|||||||
if(boost::count(pathWithoutPrefix.substr(curFolder.size()), '/') == 0)
|
if(boost::count(pathWithoutPrefix.substr(curFolder.size()), '/') == 0)
|
||||||
ret.fileInFolder = true;
|
ret.fileInFolder = true;
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
// A new size filter (Small, Medium, ...) has been selected. Populate
|
// A new size filter (Small, Medium, ...) has been selected. Populate
|
||||||
|
Loading…
x
Reference in New Issue
Block a user