diff -r e1d06cd563da -r a9fe976e01a6 mainwindow.cpp --- a/mainwindow.cpp Tue Oct 16 09:53:22 2007 +0000 +++ b/mainwindow.cpp Tue Oct 16 09:53:22 2007 +0000 @@ -158,6 +158,8 @@ #endif settings.setValue( p,s); + // width of xLinksMenu + xLinkMenuWidth=60; // Create tab widget which holds the maps tabWidget= new QTabWidget (this); @@ -643,7 +645,6 @@ a = new QAction(QPixmap(), tr( "Edit URL...","Edit menu"), this); a->setStatusTip ( tr( "Edit URL" ) ); - //a->setShortcut (Qt::SHIFT + Qt::CTRL + Qt::Key_U ); a->setShortcut ( Qt::Key_U ); a->setShortcutContext (Qt::WindowShortcut); actionListBranches.append(a); @@ -658,7 +659,7 @@ actionListBranches.append(a); addAction(a); connect( a, SIGNAL( triggered() ), this, SLOT( editLocalURL() ) ); - actionEditURL=a; + actionEditLocalURL=a; a = new QAction( tr( "Use heading for URL","Edit menu" ), this); a->setStatusTip ( tr( "Use heading of selected branch as URL" )); @@ -1501,6 +1502,7 @@ branchLinksContextMenu->addAction ( actionEditOpenURLTab ); branchLinksContextMenu->addAction ( actionEditOpenMultipleURLTabs ); branchLinksContextMenu->addAction ( actionEditURL ); + branchLinksContextMenu->addAction ( actionEditLocalURL ); branchLinksContextMenu->addAction ( actionEditHeading2URL ); branchLinksContextMenu->addAction ( actionEditBugzilla2URL ); if (settings.value( "/mainwindow/showTestMenu",false).toBool() ) @@ -3411,8 +3413,8 @@ if (bot) { s=bot->getHeading(); - if (s.length()>25) - s=s.left(25)+"..."; + if (s.length()>xLinkMenuWidth) + s=s.left(xLinkMenuWidth)+"..."; branchXLinksContextMenuFollow->addAction (s); branchXLinksContextMenuEdit->addAction (s); }