show message if adding transport master doesn't work

This commit is contained in:
Paul Davis 2018-10-07 12:43:14 -04:00
parent 3c0f749370
commit 9134323f4a
1 changed files with 6 additions and 1 deletions

View File

@ -134,7 +134,12 @@ TransportMastersWidget::add_master ()
}
}
TransportMasterManager::instance().add (d.get_type(), name);
d.hide ();
if (TransportMasterManager::instance().add (d.get_type(), name)) {
MessageDialog msg (_("New transport master not added - check error log for details"));
msg.run ();
}
}
void