mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-06 07:32:29 -06:00
BUGFIX: Fix magnet torrent name update problem
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
* Unreleased - Christophe Dumez <chris@qbittorrent.org> - v2.6.1
|
||||
- BUGFIX: Really disable torrent addition dialog by default
|
||||
- BUGFIX: Fix some missing icons in the Web UI
|
||||
- BUGFIX: Fix magnet torrent name update problem
|
||||
- COSMETIC: Use 24px size for toolbar icons
|
||||
- COSMETIC: Move transfer list filter on the right side of the toolbar
|
||||
|
||||
|
||||
@@ -294,6 +294,12 @@ int main(int argc, char *argv[]){
|
||||
QStringList torrentCmdLine = app.arguments();
|
||||
// Remove first argument (program name)
|
||||
torrentCmdLine.removeFirst();
|
||||
#ifndef QT_NO_DEBUG_OUTPUT
|
||||
foreach(const QString &argument, torrentCmdLine) {
|
||||
qDebug() << "Command line argument:" << argument;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef DISABLE_GUI
|
||||
MainWindow window(0, torrentCmdLine);
|
||||
if(!no_splash)
|
||||
|
||||
@@ -142,7 +142,7 @@ QVariant TorrentModelItem::data(int column, int role) const
|
||||
if(role != Qt::DisplayRole && role != Qt::UserRole) return QVariant();
|
||||
switch(column) {
|
||||
case TR_NAME:
|
||||
return m_name;
|
||||
return m_name.isEmpty()? m_torrent.name() : m_name;
|
||||
case TR_PRIORITY:
|
||||
return m_torrent.queue_position();
|
||||
case TR_SIZE:
|
||||
|
||||
Reference in New Issue
Block a user