diff -rupN qtoctave-0.10.1/qtoctave/src/generate_menu.cpp qtoctave-0.10.1.new/qtoctave/src/generate_menu.cpp
--- qtoctave-0.10.1/qtoctave/src/generate_menu.cpp	2011-01-06 22:48:07.000000000 +0100
+++ qtoctave-0.10.1.new/qtoctave/src/generate_menu.cpp	2019-02-22 11:36:31.565433220 +0100
@@ -279,7 +279,7 @@ bool GenerateMenu::process_menu_file(QSt
 MenuExtCallBack *GenerateMenu::process_menu_file(QString _file)
 {
 	QFile file(_file);
-	if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) return false;
+	if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) return NULL;
 	
 	QString label;
 	MenuExtCallBack *wizard=new MenuExtCallBack();
