mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 22:18:05 -06:00
Initialize boolean variables
This commit is contained in:
@@ -1003,7 +1003,7 @@ void TransferListWidget::renameSelectedTorrent()
|
||||
if (!torrent) return;
|
||||
|
||||
// Ask for a new Name
|
||||
bool ok;
|
||||
bool ok = false;
|
||||
QString name = AutoExpandableDialog::getText(this, tr("Rename"), tr("New name:"), QLineEdit::Normal, torrent->name(), &ok);
|
||||
if (ok && !name.isEmpty()) {
|
||||
name.replace(QRegularExpression("\r?\n|\r"), " ");
|
||||
|
||||
Reference in New Issue
Block a user