diff -r 8f987e376035 -r 735c7ea1d2a9 mainwindow.cpp --- a/mainwindow.cpp Mon Jan 04 20:36:06 2010 +0000 +++ b/mainwindow.cpp Tue Jan 05 11:23:12 2010 +0000 @@ -805,6 +805,16 @@ connect( a, SIGNAL( triggered() ), this, SLOT( editBugzilla2URL() ) ); actionBugzilla2URL=a; + a = new QAction(tr( "Create URL to Novell Bugzilla","Edit menu" ), this); + a->setStatusTip ( tr( "Get data from Novell Bugzilla" )); + a->setEnabled (false); + actionListBranches.append(a); + a->setShortcut ( Qt::Key_B + Qt::SHIFT); + a->setShortcutContext (Qt::WindowShortcut); + addAction(a); + connect( a, SIGNAL( triggered() ), this, SLOT( getBugzillaData() ) ); + actionGetBugzillaData=a; + a = new QAction(tr( "Create URL to Novell FATE","Edit menu" ), this); a->setStatusTip ( tr( "Create URL to Novell FATE" )); a->setEnabled (false); @@ -1621,6 +1631,7 @@ branchLinksContextMenu->addAction ( actionBugzilla2URL ); if (settings.value( "/mainwindow/showTestMenu",false).toBool() ) { + branchLinksContextMenu->addAction ( actionGetBugzillaData ); branchLinksContextMenu->addAction ( actionFATE2URL ); } branchLinksContextMenu->addSeparator(); @@ -2648,6 +2659,12 @@ if (m) m->editBugzilla2URL(); } +void Main::getBugzillaData() +{ + VymModel *m=currentModel(); + if (m) m->getBugzillaData(); +} + void Main::editFATE2URL() { VymModel *m=currentModel();