diff --git a/src/eventmanager.cpp b/src/eventmanager.cpp
index 2e689044c..489082578 100644
--- a/src/eventmanager.cpp
+++ b/src/eventmanager.cpp
@@ -109,9 +109,12 @@ void EventManager::modifiedTorrent(QTorrentHandle h)
event["progress"] = QVariant(h.progress());
event["dlspeed"] = QVariant(tr("%1/s", "e.g. 120 KiB/s").arg(misc::friendlyUnit(h.download_payload_rate())));
if(BTSession->isQueueingEnabled()) {
- event["priority"] = QVariant(h.queue_position());
+ if(h.queue_position() >= 0)
+ event["priority"] = QVariant(QString::number(h.queue_position()));
+ else
+ event["priority"] = "*";
} else {
- event["priority"] = -1;
+ event["priority"] = "*";
}
event["upspeed"] = QVariant(tr("%1/s", "e.g. 120 KiB/s").arg(misc::friendlyUnit(h.upload_payload_rate())));
QString seeds = QString::number(h.num_seeds());
diff --git a/src/httpconnection.cpp b/src/httpconnection.cpp
index bf49d7d84..d3a9ed439 100644
--- a/src/httpconnection.cpp
+++ b/src/httpconnection.cpp
@@ -107,7 +107,7 @@ QString HttpConnection::translateDocument(QString data) {
bool found = false;
do {
found = false;
- QRegExp regex("_\\(([\\w\\s?!]+)\\)");
+ QRegExp regex("_\\(([\\w\\s?!\\.]+)\\)");
i = regex.indexIn(data, i);
if(i >= 0) {
qDebug("Found translatable string: %s", regex.cap(1).toUtf8().data());
diff --git a/src/webui/scripts/client.js b/src/webui/scripts/client.js
index 4000ee110..0910e2fa5 100644
--- a/src/webui/scripts/client.js
+++ b/src/webui/scripts/client.js
@@ -93,11 +93,12 @@ window.addEvent('domready', function(){
row[8] = event.upspeed;
row[9] = event.eta;
row[10] = event.ratio;
- if(row[2] != -1)
+ if(row[2] != "*")
queueing_enabled = true;
if(!torrent_hashes.contains(event.hash)) {
// New unfinished torrent
- //torrent_hashes[torrent_hashes.length] = event.hash;
+ torrent_hashes[torrent_hashes.length] = event.hash;
+ //alert("Inserting row");
myTable.insertRow(event.hash, row);
} else {
// Update torrent data
diff --git a/src/webui/scripts/dynamicTable.js b/src/webui/scripts/dynamicTable.js
index a024c66db..1003fb395 100644
--- a/src/webui/scripts/dynamicTable.js
+++ b/src/webui/scripts/dynamicTable.js
@@ -78,7 +78,7 @@ var dynamicTable = new Class ({
var trs = this.table.getElements('tr');
trs.each(function(tr,i){
var tds = tr.getElements('td');
- tds.getLast().removeClass('invisible');
+ tds[2].removeClass('invisible');
}.bind(this));
this.priority_hidden = false;
},
@@ -126,8 +126,6 @@ var dynamicTable = new Class ({
//this.removeRow(id);
var tr = new Element('tr');
this.rows[id] = tr;
- // Apply filter
- this.applyFilterOnRow(tr, status);
for(var i=0; i
+