Initialize boolean variables

This commit is contained in:
Chocobo1 2020-03-06 15:04:29 +08:00
commit 48e7191ef7
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
4 changed files with 6 additions and 6 deletions

View file

@ -482,7 +482,7 @@ void TrackerListWidget::editSelectedTracker()
// During multi-select only process item selected last
const QUrl trackerURL = selectedTrackerItems.last()->text(COL_URL);
bool ok;
bool ok = false;
const QUrl newTrackerURL = AutoExpandableDialog::getText(this, tr("Tracker editing"), tr("Tracker URL:"),
QLineEdit::Normal, trackerURL.toString(), &ok).trimmed();
if (!ok) return;