diff -r 0bd62e09d061 -r 12e4596e7bb7 mainwindow.cpp --- a/mainwindow.cpp Tue Sep 04 13:53:33 2007 +0000 +++ b/mainwindow.cpp Mon Oct 22 09:50:03 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); }