mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 14:08:03 -06:00
Fix some warnings
This commit is contained in:
@@ -54,7 +54,7 @@ void ScanFoldersDelegate::setEditorData(QWidget *editor, const QModelIndex &inde
|
||||
|
||||
QWidget *ScanFoldersDelegate::createEditor(QWidget *parent, const QStyleOptionViewItem &, const QModelIndex &index) const
|
||||
{
|
||||
if (index.column() != ScanFoldersModel::DOWNLOAD) return 0;
|
||||
if (index.column() != ScanFoldersModel::DOWNLOAD) return nullptr;
|
||||
|
||||
QComboBox *editor = new QComboBox(parent);
|
||||
|
||||
@@ -96,7 +96,7 @@ void ScanFoldersDelegate::setModelData(QWidget *editor, QAbstractItemModel *mode
|
||||
model->setData(
|
||||
index,
|
||||
QFileDialog::getExistingDirectory(
|
||||
0, tr("Select save location"),
|
||||
nullptr, tr("Select save location"),
|
||||
index.data(Qt::UserRole).toInt() == ScanFoldersModel::CUSTOM_LOCATION ?
|
||||
index.data().toString() :
|
||||
BitTorrent::Session::instance()->defaultSavePath()),
|
||||
|
||||
Reference in New Issue
Block a user