Changeset View
Changeset View
Standalone View
Standalone View
plugins/cvs/checkoutdialog.cpp
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Line(s) | |||||
51 | void CheckoutDialog::jobFinished(KJob * job) | 51 | void CheckoutDialog::jobFinished(KJob * job) | ||
52 | { | 52 | { | ||
53 | if (job->error()) { | 53 | if (job->error()) { | ||
54 | KMessageBox::error(this, i18n("Error on checkout"), i18n("Checkout Error")); | 54 | KMessageBox::error(this, i18n("Error on checkout"), i18n("Checkout Error")); | ||
55 | return; | 55 | return; | ||
56 | } | 56 | } | ||
57 | 57 | | |||
58 | // The job finished, now let's check the output is everything was OK | 58 | // The job finished, now let's check the output is everything was OK | ||
59 | CvsJob* cvsjob = dynamic_cast<CvsJob*>(job); | 59 | CvsJob* cvsjob = static_cast<CvsJob*>(job); | ||
60 | 60 | | |||
61 | static QRegExp re_file("^.\\s(.*)"); | 61 | static QRegExp re_file("^.\\s(.*)"); | ||
62 | bool error = false; | 62 | bool error = false; | ||
63 | QStringList lines = cvsjob->output().split('\n'); | 63 | QStringList lines = cvsjob->output().split('\n'); | ||
64 | foreach(const QString &line, lines) { | 64 | foreach(const QString &line, lines) { | ||
65 | if (line.isEmpty()) { | 65 | if (line.isEmpty()) { | ||
66 | // ignore empty lines | 66 | // ignore empty lines | ||
67 | continue; | 67 | continue; | ||
Show All 19 Lines |