FIX: In order to disable a button in fl_choice, a 0 pointer must be sent
instead of "".
This commit is contained in:
parent
d41e954f07
commit
bc34c428df
|
@ -16,7 +16,7 @@ void FLTKMessageCallback(const char* message, const char* title, bool& nomore)
|
|||
{
|
||||
std::string msg = message;
|
||||
msg += "\nPress cancel to suppress any further messages.";
|
||||
int choice = fl_choice( msg.c_str(), "Cancel","Ok","");
|
||||
int choice = fl_choice( msg.c_str(), "Cancel","Ok",0);
|
||||
if(choice==0)
|
||||
{
|
||||
nomore = true;
|
||||
|
|
Loading…
Reference in New Issue