diff -r c2ce9944148c -r 0bba81dde1bc mapeditor.cpp --- a/mapeditor.cpp Wed Feb 10 13:48:42 2010 +0000 +++ b/mapeditor.cpp Fri Feb 19 13:47:03 2010 +0000 @@ -1,8 +1,6 @@ #include "mapeditor.h" -#include -#include -#include +#include #include @@ -89,13 +87,13 @@ a = new QAction( "Select left branch", this); a->setShortcut (Qt::Key_Left ); // a->setShortcutContext (Qt::WindowShortcut); - a->setShortcutContext (Qt::WidgetWithChildrenShortcut); +// a->setShortcutContext (Qt::WidgetWithChildrenShortcut); addAction (a); connect( a, SIGNAL( triggered() ), this, SLOT( cursorLeft() ) ); a = new QAction( "Select child branch", this); a->setShortcut (Qt::Key_Right); - a->setShortcutContext (Qt::WidgetWithChildrenShortcut); +// a->setShortcutContext (Qt::WidgetWithChildrenShortcut); addAction (a); connect( a, SIGNAL( triggered() ), this, SLOT( cursorRight() ) ); @@ -940,7 +938,9 @@ editingHeading=false; lineEdit->releaseKeyboard(); lineEdit->clearFocus(); - model->setHeading (lineEdit->text() ); + QString s=lineEdit->text(); + s.replace (QRegExp ("\\n")," "); // Don't paste newline chars + model->setHeading (s); model->setSelectionBlocked(false); delete (lineEdit); @@ -1055,7 +1055,7 @@ { // systemFlag clicked model->select (lmo); - if (foname=="system-url") + if (foname.contains("system-url")) { if (e->state() & Qt::ControlModifier) mainWindow->editOpenURLTab();