fix CIDs 154872, 152491, 129453
This commit is contained in:
@@ -92,7 +92,6 @@ TaskWatcherCommands::TaskWatcherCommands(const char* Filter,const char* commands
|
||||
(BitmapFactory().pixmap(pixmap), trUtf8(name), true, 0);
|
||||
|
||||
for (const char** i=commands;*i;i++) {
|
||||
if(!i) break;
|
||||
Command *c = mgr.getCommandByName(*i);
|
||||
if (c) {
|
||||
// handled in TaskBox::actionEvent()
|
||||
|
||||
@@ -539,7 +539,7 @@ bool ViewProvider::onDelete(const vector< string >& subNames) {
|
||||
bool del = true;
|
||||
auto vector = getExtensionsDerivedFromType<Gui::ViewProviderExtension>();
|
||||
for(Gui::ViewProviderExtension* ext : vector)
|
||||
del = del || ext->extensionOnDelete(subNames);
|
||||
del &= ext->extensionOnDelete(subNames);
|
||||
|
||||
return del;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user