BUGFIX: Fix magnet torrent name update problem

This commit is contained in:
Christophe Dumez
2011-01-10 17:36:17 +00:00
parent 514f82a3c9
commit 1299e75934
3 changed files with 8 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
* Unreleased - Christophe Dumez <chris@qbittorrent.org> - v2.6.1 * Unreleased - Christophe Dumez <chris@qbittorrent.org> - v2.6.1
- BUGFIX: Really disable torrent addition dialog by default - BUGFIX: Really disable torrent addition dialog by default
- BUGFIX: Fix some missing icons in the Web UI - BUGFIX: Fix some missing icons in the Web UI
- BUGFIX: Fix magnet torrent name update problem
- COSMETIC: Use 24px size for toolbar icons - COSMETIC: Use 24px size for toolbar icons
- COSMETIC: Move transfer list filter on the right side of the toolbar - COSMETIC: Move transfer list filter on the right side of the toolbar

View File

@@ -294,6 +294,12 @@ int main(int argc, char *argv[]){
QStringList torrentCmdLine = app.arguments(); QStringList torrentCmdLine = app.arguments();
// Remove first argument (program name) // Remove first argument (program name)
torrentCmdLine.removeFirst(); torrentCmdLine.removeFirst();
#ifndef QT_NO_DEBUG_OUTPUT
foreach(const QString &argument, torrentCmdLine) {
qDebug() << "Command line argument:" << argument;
}
#endif
#ifndef DISABLE_GUI #ifndef DISABLE_GUI
MainWindow window(0, torrentCmdLine); MainWindow window(0, torrentCmdLine);
if(!no_splash) if(!no_splash)

View File

@@ -142,7 +142,7 @@ QVariant TorrentModelItem::data(int column, int role) const
if(role != Qt::DisplayRole && role != Qt::UserRole) return QVariant(); if(role != Qt::DisplayRole && role != Qt::UserRole) return QVariant();
switch(column) { switch(column) {
case TR_NAME: case TR_NAME:
return m_name; return m_name.isEmpty()? m_torrent.name() : m_name;
case TR_PRIORITY: case TR_PRIORITY:
return m_torrent.queue_position(); return m_torrent.queue_position();
case TR_SIZE: case TR_SIZE: