mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-06 22:30:07 -05:00
FIX: In order to disable a button in fl_choice, a 0 pointer must be sent
instead of "".
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user