Commit 6a54e65c authored by Jan Möbius's avatar Jan Möbius

Removed first check, made second one more descriptive

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@11616 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 96005daa
......@@ -82,13 +82,6 @@ void CoreWidget::slotAddToolbar(QToolBar* _toolbar) {
}
}
// Security check if all fails (no scripting plugin, no sender)
if ( id == -1) {
emit log(LOGERR,tr("slotAddToolbar: no sender and scripting plugin not available! Strange!"));
emit log(LOGERR,tr("slotAddToolbar: Could not add Toolbar!"));
return;
}
// Check if a toolbar with the same name is already registered
for ( unsigned int i = 0 ; i < toolbars_.size(); ++i ) {
......@@ -132,7 +125,7 @@ void CoreWidget::getToolBar( QString _name, QToolBar*& _toolbar) {
_toolbar = 0;
emit log(LOGERR,tr("getToolBar: Toolbar not found.") );
emit log(LOGERR,tr("getToolBar: Toolbar \"%1\" not found.").arg(_name) );
}
void CoreWidget::slotRemoveToolbar(QToolBar* _toolbar) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment