mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-13 16:53:08 -07:00
Fix magnet link name update problem
This commit is contained in:
parent
816cfefbac
commit
1ce6f4a7c3
2 changed files with 7 additions and 1 deletions
|
@ -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)
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue