mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-03 22:22:33 -06:00
Fix save path display in properties
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
* Unreleased - Christophe Dumez <chris@qbittorrent.org> - v2.1.6
|
||||||
|
- BUGFIX: Fix Web UI authentication with Konqueror
|
||||||
|
- BUGFIX: Fix save path display in properties
|
||||||
|
|
||||||
* Web Feb 10 2010 - Christophe Dumez <chris@qbittorrent.org> - v2.1.5
|
* Web Feb 10 2010 - Christophe Dumez <chris@qbittorrent.org> - v2.1.5
|
||||||
- BUGFIX: Fix actions on selected torrents (non-selected torrents could be affected)
|
- BUGFIX: Fix actions on selected torrents (non-selected torrents could be affected)
|
||||||
- BUGFIX: Only one program preferences dialog is allowed at a time
|
- BUGFIX: Only one program preferences dialog is allowed at a time
|
||||||
|
|||||||
@@ -138,6 +138,7 @@ void HttpConnection::respond() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
QString auth = parser.value("Authorization");
|
QString auth = parser.value("Authorization");
|
||||||
|
qDebug("Auth: %s", auth.split(" ").first().toLocal8Bit().data());
|
||||||
if (QString::compare(auth.split(" ").first(), "Digest", Qt::CaseInsensitive) != 0 || !parent->isAuthorized(auth.toLocal8Bit(), parser.method())) {
|
if (QString::compare(auth.split(" ").first(), "Digest", Qt::CaseInsensitive) != 0 || !parent->isAuthorized(auth.toLocal8Bit(), parser.method())) {
|
||||||
// Update failed attempt counter
|
// Update failed attempt counter
|
||||||
parent->client_failed_attempts.insert(socket->peerAddress().toString(), nb_fail+1);
|
parent->client_failed_attempts.insert(socket->peerAddress().toString(), nb_fail+1);
|
||||||
|
|||||||
@@ -207,7 +207,7 @@ bool HttpServer::isAuthorized(QByteArray auth, QString method) const {
|
|||||||
}
|
}
|
||||||
QByteArray prop_cnonce = regex_cnonce.cap(1).toLocal8Bit();
|
QByteArray prop_cnonce = regex_cnonce.cap(1).toLocal8Bit();
|
||||||
qDebug("prop cnonce is: %s", prop_cnonce.data());
|
qDebug("prop cnonce is: %s", prop_cnonce.data());
|
||||||
QRegExp regex_qop(".*qop=(\\w+).*");
|
QRegExp regex_qop(".*qop=[\"]?(\\w+)[\"]?.*");
|
||||||
if(regex_qop.indexIn(auth) < 0) {
|
if(regex_qop.indexIn(auth) < 0) {
|
||||||
qDebug("AUTH-PROB: missing qop");
|
qDebug("AUTH-PROB: missing qop");
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -208,7 +208,10 @@ Bittorrent* PropertiesWidget::getBTSession() const {
|
|||||||
|
|
||||||
void PropertiesWidget::updateSavePath(QTorrentHandle& _h) {
|
void PropertiesWidget::updateSavePath(QTorrentHandle& _h) {
|
||||||
if(h.is_valid() && h == _h) {
|
if(h.is_valid() && h == _h) {
|
||||||
save_path->setText(TorrentPersistentData::getSavePath(h.hash()));
|
QString p = TorrentPersistentData::getSavePath(h.hash());
|
||||||
|
if(p.isEmpty())
|
||||||
|
p = h.save_path();
|
||||||
|
save_path->setText(p);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -223,7 +226,10 @@ void PropertiesWidget::loadTorrentInfos(QTorrentHandle &_h) {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
// Save path
|
// Save path
|
||||||
save_path->setText(TorrentPersistentData::getSavePath(h.hash()));
|
QString p = TorrentPersistentData::getSavePath(h.hash());
|
||||||
|
if(p.isEmpty())
|
||||||
|
p = h.save_path();
|
||||||
|
save_path->setText(p);
|
||||||
// Creation date
|
// Creation date
|
||||||
lbl_creationDate->setText(h.creation_date());
|
lbl_creationDate->setText(h.creation_date());
|
||||||
// Hash
|
// Hash
|
||||||
|
|||||||
Reference in New Issue
Block a user