FIX: In order to disable a button in fl_choice, a 0 pointer must be sent

instead of  "".
This commit is contained in:
Luis Ibanez 2001-10-30 04:33:06 -05:00
parent d41e954f07
commit bc34c428df
1 changed files with 1 additions and 1 deletions

View File

@ -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;