mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-03 22:22:33 -06:00
BUGFIX: Fix crash when adding a new torrent label
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
* Unreleased - Christophe Dumez <chris@qbittorrent.org> - v2.2.5
|
* Unreleased - Christophe Dumez <chris@qbittorrent.org> - v2.2.5
|
||||||
- BUGFIX: Fix default width of file name column in torrent content
|
- BUGFIX: Fix default width of file name column in torrent content
|
||||||
|
- BUGFIX: Fix crash when adding a new torrent label
|
||||||
|
|
||||||
* Tue Apr 06 2010 - Christophe Dumez <chris@qbittorrent.org> - v2.2.4
|
* Tue Apr 06 2010 - Christophe Dumez <chris@qbittorrent.org> - v2.2.4
|
||||||
- BUGFIX: Fix possible crash when adding a torrent
|
- BUGFIX: Fix possible crash when adding a torrent
|
||||||
|
|||||||
@@ -918,7 +918,7 @@ void TransferListWidget::askNewLabelForSelection() {
|
|||||||
bool invalid;
|
bool invalid;
|
||||||
do {
|
do {
|
||||||
invalid = false;
|
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 (ok && !label.isEmpty()) {
|
||||||
if(misc::isValidFileSystemName(label)) {
|
if(misc::isValidFileSystemName(label)) {
|
||||||
setSelectionLabel(label);
|
setSelectionLabel(label);
|
||||||
|
|||||||
Reference in New Issue
Block a user