mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 23:47:23 -06:00
BUGFIX: Really fix manual editing of save path in torrent addition dialog
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
* Sun Sep 26 2010 - Christophe Dumez <chris@qbittorrent.org> - v2.4.2
|
* Sun Sep 26 2010 - Christophe Dumez <chris@qbittorrent.org> - v2.4.2
|
||||||
- BUGFIX: Fix display of torrent content in addition dialog
|
- BUGFIX: Fix display of torrent content in addition dialog
|
||||||
|
- BUGFIX: Really fix manual editing of save path in torrent addition dialog
|
||||||
|
|
||||||
* Sun Sep 26 2010 - Christophe Dumez <chris@qbittorrent.org> - v2.4.1
|
* Sun Sep 26 2010 - Christophe Dumez <chris@qbittorrent.org> - v2.4.1
|
||||||
- I18N: Updated Arabic translation
|
- I18N: Updated Arabic translation
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
|
|
||||||
#include "torrentadditiondlg.h"
|
#include "torrentadditiondlg.h"
|
||||||
|
|
||||||
torrentAdditionDialog::torrentAdditionDialog(GUI *parent, Bittorrent* _BTSession) : QDialog((QWidget*)parent), old_label(""), hidden_height(0) {
|
torrentAdditionDialog::torrentAdditionDialog(GUI *parent, Bittorrent* _BTSession) : QDialog((QWidget*)parent), old_label(""), hidden_height(0), cursor_pos(-1) {
|
||||||
setupUi(this);
|
setupUi(this);
|
||||||
setAttribute(Qt::WA_DeleteOnClose);
|
setAttribute(Qt::WA_DeleteOnClose);
|
||||||
connect(this, SIGNAL(torrentPaused(QTorrentHandle&)), parent->getTransferList(), SLOT(pauseTorrent(QTorrentHandle&)));
|
connect(this, SIGNAL(torrentPaused(QTorrentHandle&)), parent->getTransferList(), SLOT(pauseTorrent(QTorrentHandle&)));
|
||||||
@@ -641,9 +641,12 @@ void torrentAdditionDialog::renameSelectedFile() {
|
|||||||
|
|
||||||
void torrentAdditionDialog::restoreCursorPosition() {
|
void torrentAdditionDialog::restoreCursorPosition() {
|
||||||
savePathTxt->lineEdit()->setCursorPosition(cursor_pos);
|
savePathTxt->lineEdit()->setCursorPosition(cursor_pos);
|
||||||
|
cursor_pos = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void torrentAdditionDialog::updateSavePathCurrentText(QString path) {
|
void torrentAdditionDialog::updateSavePathCurrentText(QString path) {
|
||||||
|
if(cursor_pos >= 0)
|
||||||
|
return;
|
||||||
Q_UNUSED(path);
|
Q_UNUSED(path);
|
||||||
cursor_pos = savePathTxt->lineEdit()->cursorPosition();
|
cursor_pos = savePathTxt->lineEdit()->cursorPosition();
|
||||||
savePathTxt->setItemText(savePathTxt->currentIndex(), path);
|
savePathTxt->setItemText(savePathTxt->currentIndex(), path);
|
||||||
|
|||||||
Reference in New Issue
Block a user