mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
CtrlLib: FileSel fixed to compile in Linux
git-svn-id: svn://ultimatepp.org/upp/trunk@15459 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
3df4ba474d
commit
aceca73cda
2 changed files with 9 additions and 1 deletions
|
|
@ -1453,7 +1453,11 @@ void FileSel::Reload()
|
|||
|
||||
void FileSel::Activate()
|
||||
{
|
||||
if(loaded && !loading_network && GetDir() != "\\" && netnode.GetCount() == 0)
|
||||
if(loaded && !loading_network && GetDir() != "\\"
|
||||
#ifdef PLATFORM_WIN32
|
||||
&& netnode.GetCount() == 0
|
||||
#endif
|
||||
)
|
||||
Reload();
|
||||
TopWindow::Activate();
|
||||
}
|
||||
|
|
@ -1461,7 +1465,9 @@ void FileSel::Activate()
|
|||
bool FileSel::Key(dword key, int count) {
|
||||
switch(key) {
|
||||
case K_F9:
|
||||
#ifdef PLATFORM_WIN32
|
||||
netroot_loaded = false;
|
||||
#endif
|
||||
Reload();
|
||||
return true;
|
||||
case K_MOUSE_FORWARD:
|
||||
|
|
|
|||
|
|
@ -278,8 +278,10 @@ protected:
|
|||
void GoToPlace();
|
||||
void AddPlaceRaw(const String& path, const Image& m, const String& name, const char* group = NULL, int row = -1);
|
||||
void AddSystemPlaces(int row = -1);
|
||||
#ifdef PLATFORM_WIN32
|
||||
void ScanNetwork(Function<Array<NetNode> ()> fn);
|
||||
void ScanNetworkRoot();
|
||||
#endif
|
||||
|
||||
using WithFileSelectorLayout<TopWindow>::Title;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue