Commit 40782679 authored by Christian Loose's avatar Christian Loose

Pass TagInfo to tagSelected() method instead of going

through the list of tags again.

svn path=/trunk/kdesdk/cervisia/; revision=199037
parent 08668f3d
......@@ -435,32 +435,26 @@ void LogDialog::revisionSelected(QString rev, bool rmb)
void LogDialog::tagSelected(QString tag, bool rmb)
void LogDialog::tagSelected(TagInfo* tag, bool rmb)
QPtrListIterator<TagInfo> it(tags);
for (; it.current(); ++it)
if (tag == it.current()->tag)
if (it.current()->branchpoint.isEmpty())
revisionSelected(it.current()->rev, rmb);
revisionSelected(it.current()->branchpoint, rmb);
if (tag->branchpoint.isEmpty())
revisionSelected(tag->rev, rmb);
revisionSelected(tag->branchpoint, rmb);
void LogDialog::tagASelected(int n)
if (n)
tagSelected(>tag, false);
tagSelected(, false);
void LogDialog::tagBSelected(int n)
if (n)
tagSelected(>tag, true);
tagSelected(, true);
#include "logdlg.moc"
......@@ -71,11 +71,12 @@ private slots:
void diffClicked();
void annotateClicked();
void revisionSelected(QString rev, bool rmb);
void tagSelected(QString rev, bool rmb);
void tagASelected(int n);
void tagBSelected(int n);
void tagSelected(TagInfo* tag, bool rmb);
struct Options {
QSize size;
bool showlisttab;
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