mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-01 05:08:05 -06:00
Initialize boolean variables
This commit is contained in:
@@ -710,7 +710,7 @@ void PropertiesWidget::configure()
|
||||
|
||||
void PropertiesWidget::askWebSeed()
|
||||
{
|
||||
bool ok;
|
||||
bool ok = false;
|
||||
// Ask user for a new url seed
|
||||
const QString urlSeed = AutoExpandableDialog::getText(this, tr("New URL seed", "New HTTP source"),
|
||||
tr("New URL seed:"), QLineEdit::Normal,
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user