Initialize boolean variables

This commit is contained in:
Chocobo1
2020-03-06 15:04:29 +08:00
parent 9c6bc6c89a
commit 48e7191ef7
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;