parent
3555ac3907
commit
eb1531ac1c
|
@ -422,7 +422,7 @@ nfdresult_t NFD_OpenDialog( const std::vector<std::string>& filterList,
|
||||||
nfdselcallback_t selCallback )
|
nfdselcallback_t selCallback )
|
||||||
{
|
{
|
||||||
nfdresult_t nfdResult = NFD_ERROR;
|
nfdresult_t nfdResult = NFD_ERROR;
|
||||||
//NFDWinEvents* winEvents;
|
NFDWinEvents* winEvents;
|
||||||
bool hasEvents=true;
|
bool hasEvents=true;
|
||||||
DWORD eventID=0;
|
DWORD eventID=0;
|
||||||
|
|
||||||
|
@ -458,14 +458,14 @@ nfdresult_t NFD_OpenDialog( const std::vector<std::string>& filterList,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Pass the callback
|
// Pass the callback
|
||||||
/*winEvents=new NFDWinEvents(selCallback);
|
winEvents=new NFDWinEvents(selCallback);
|
||||||
if ( !SUCCEEDED(fileOpenDialog->Advise(winEvents,&eventID)) ) {
|
if ( !SUCCEEDED(fileOpenDialog->Advise(winEvents,&eventID)) ) {
|
||||||
// error... ignore
|
// error... ignore
|
||||||
hasEvents=false;
|
hasEvents=false;
|
||||||
winEvents->Release();
|
winEvents->Release();
|
||||||
} else {
|
} else {
|
||||||
winEvents->Release();
|
winEvents->Release();
|
||||||
}*/
|
}
|
||||||
|
|
||||||
// Show the dialog.
|
// Show the dialog.
|
||||||
// TODO: pass the Furnace window here
|
// TODO: pass the Furnace window here
|
||||||
|
|
Loading…
Reference in New Issue