mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-27 15:04:36 +00:00
Fix crash when adding a new label
This commit is contained in:
parent
843e49a5a8
commit
48585bb049
@ -918,7 +918,7 @@ void TransferListWidget::askNewLabelForSelection() {
|
||||
bool invalid;
|
||||
do {
|
||||
invalid = false;
|
||||
const QString &label = QInputDialog::getText(this, tr("New Label"), tr("Label:"), QLineEdit::Normal, label, &ok);
|
||||
const QString &label = QInputDialog::getText(this, tr("New Label"), tr("Label:"), QLineEdit::Normal, "", &ok);
|
||||
if (ok && !label.isEmpty()) {
|
||||
if(misc::isValidFileSystemName(label)) {
|
||||
setSelectionLabel(label);
|
||||
|
Loading…
x
Reference in New Issue
Block a user