Skip to content

Commit

Permalink
superfluous stuff removed
Browse files Browse the repository at this point in the history
  • Loading branch information
aliakseis committed Jan 27, 2019
1 parent b9369f3 commit a97cf94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
3 changes: 2 additions & 1 deletion src/gui/addtorrentform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ void AddTorrentForm::initialize()

auto* contentDelegate = new PropListDelegate(this);
ui->treeTorrentContent->setItemDelegate(contentDelegate);
VERIFY(connect(ui->treeTorrentContent, SIGNAL(clicked(const QModelIndex&)), ui->treeTorrentContent, SLOT(edit(const QModelIndex&))));
VERIFY(connect(ui->treeTorrentContent, SIGNAL(clicked(const QModelIndex&)),
ui->treeTorrentContent, SLOT(edit(const QModelIndex&))));

// List files in torrent
m_contentModel->model()->setupModelData(*m_torrentInfo, libtorrent::torrent_status());
Expand Down
11 changes: 1 addition & 10 deletions src/logic/torrentcontentmodelitem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -284,16 +284,7 @@ void TorrentContentModelItem::appendChild(TorrentContentModelItem* item)
{
Q_ASSERT(item);
Q_ASSERT(m_type != TFILE);
int i = 0;
for (; i < m_childItems.size(); ++i)
{
QString newchild_name = item->getName();
if (QString::localeAwareCompare(newchild_name, m_childItems.at(i)->getName()) < 0)
{
break;
}
}
m_childItems.insert(i, item);
m_childItems.append(item);
}

TorrentContentModelItem* TorrentContentModelItem::child(int row) const
Expand Down

0 comments on commit a97cf94

Please sign in to comment.