Use QBT_EXT in all places

Cleanup headers on the way
This commit is contained in:
Chocobo1
2017-02-07 14:07:59 +08:00
parent b18bf48014
commit b9403774e6
4 changed files with 13 additions and 10 deletions

View File

@@ -28,16 +28,17 @@
* Contact : chris@qbittorrent.org
*/
#include <QDebug>
#include "torrentcontentmodelfolder.h"
#include "base/bittorrent/torrenthandle.h"
TorrentContentModelFolder::TorrentContentModelFolder(const QString &name, TorrentContentModelFolder *parent)
: TorrentContentModelItem(parent)
{
Q_ASSERT(parent);
m_name = name;
// Do not display incomplete extensions
if (m_name.endsWith(".!qB"))
if (m_name.endsWith(QB_EXT))
m_name.chop(4);
}