mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 14:38:04 -06:00
BUGFIX: Save path can now be edited in torrent addition dialog
This commit is contained in:
@@ -1,6 +1,9 @@
|
|||||||
* Unreleased - Christophe Dumez <chris@qbittorrent.org> - v2.4.1
|
* Unreleased - Christophe Dumez <chris@qbittorrent.org> - v2.4.1
|
||||||
- I18N: Updated Arabic translation
|
- I18N: Updated Arabic translation
|
||||||
- I18N: Fixes to German translation
|
- I18N: Fixes to German translation
|
||||||
|
- BUGFIX: Save path can now be edited in torrent addition dialog
|
||||||
|
- BUGFIX: OGV can now be previewed
|
||||||
|
- BUGFIX: Maximum download limit is now 10MB/s
|
||||||
|
|
||||||
* Tue Aug 24 2010 - Christophe Dumez <chris@qbittorrent.org> - v2.4.0
|
* Tue Aug 24 2010 - Christophe Dumez <chris@qbittorrent.org> - v2.4.0
|
||||||
- FEATURE: Added actions to "Move to top/bottom" of priority queue
|
- FEATURE: Added actions to "Move to top/bottom" of priority queue
|
||||||
|
|||||||
@@ -614,8 +614,15 @@ void torrentAdditionDialog::renameSelectedFile() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void torrentAdditionDialog::restoreCursorPosition() {
|
||||||
|
savePathTxt->lineEdit()->setCursorPosition(cursor_pos);
|
||||||
|
}
|
||||||
|
|
||||||
void torrentAdditionDialog::updateSavePathCurrentText(QString path) {
|
void torrentAdditionDialog::updateSavePathCurrentText(QString path) {
|
||||||
|
Q_UNUSED(path);
|
||||||
|
cursor_pos = savePathTxt->lineEdit()->cursorPosition();
|
||||||
savePathTxt->setItemText(savePathTxt->currentIndex(), path);
|
savePathTxt->setItemText(savePathTxt->currentIndex(), path);
|
||||||
|
QTimer::singleShot(0, this, SLOT(restoreCursorPosition()));
|
||||||
path_history.replace(savePathTxt->currentIndex(), getCurrentTruncatedSavePath());
|
path_history.replace(savePathTxt->currentIndex(), getCurrentTruncatedSavePath());
|
||||||
QString root_folder_or_file_name = "";
|
QString root_folder_or_file_name = "";
|
||||||
getCurrentTruncatedSavePath(&root_folder_or_file_name);
|
getCurrentTruncatedSavePath(&root_folder_or_file_name);
|
||||||
|
|||||||
@@ -88,6 +88,9 @@ public slots:
|
|||||||
void updateSavePathCurrentText(QString path);
|
void updateSavePathCurrentText(QString path);
|
||||||
void resetComboLabelIndex(QString text);
|
void resetComboLabelIndex(QString text);
|
||||||
|
|
||||||
|
protected slots:
|
||||||
|
void restoreCursorPosition();
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void torrentPaused(QTorrentHandle &h);
|
void torrentPaused(QTorrentHandle &h);
|
||||||
|
|
||||||
@@ -108,6 +111,7 @@ private:
|
|||||||
bool is_magnet;
|
bool is_magnet;
|
||||||
int hidden_height;
|
int hidden_height;
|
||||||
QStringList path_history;
|
QStringList path_history;
|
||||||
|
int cursor_pos;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user