mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-08 06:00:59 -07:00
Initialize boolean variables
This commit is contained in:
parent
9c6bc6c89a
commit
48e7191ef7
4 changed files with 6 additions and 6 deletions
|
@ -216,7 +216,7 @@ void RSSWidget::displayItemsListMenu(const QPoint &)
|
|||
|
||||
void RSSWidget::askNewFolder()
|
||||
{
|
||||
bool ok;
|
||||
bool ok = false;
|
||||
QString newName = AutoExpandableDialog::getText(
|
||||
this, tr("Please choose a folder name"), tr("Folder name:"), QLineEdit::Normal
|
||||
, tr("New folder"), &ok);
|
||||
|
@ -257,7 +257,7 @@ void RSSWidget::on_newFeedButton_clicked()
|
|||
const QString clipText = qApp->clipboard()->text();
|
||||
const QString defaultURL = Net::DownloadManager::hasSupportedScheme(clipText) ? clipText : "http://";
|
||||
|
||||
bool ok;
|
||||
bool ok = false;
|
||||
QString newURL = AutoExpandableDialog::getText(
|
||||
this, tr("Please type a RSS feed URL"), tr("Feed URL:"), QLineEdit::Normal, defaultURL, &ok);
|
||||
if (!ok) return;
|
||||
|
@ -386,7 +386,7 @@ void RSSWidget::renameSelectedRSSItem()
|
|||
|
||||
RSS::Item *rssItem = m_feedListWidget->getRSSItem(item);
|
||||
const QString parentPath = RSS::Item::parentPath(rssItem->path());
|
||||
bool ok;
|
||||
bool ok = false;
|
||||
do {
|
||||
QString newName = AutoExpandableDialog::getText(
|
||||
this, tr("Please choose a new name for this RSS feed"), tr("New feed name:")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue