mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 01:33:07 -07:00
More code cleanup
This commit is contained in:
parent
9a645b4b19
commit
aec99ed14f
18 changed files with 191 additions and 201 deletions
|
@ -90,8 +90,8 @@ void RSSImp::displayItemsListMenu(const QPoint&){
|
|||
if(selectedItems.size() > 0) {
|
||||
bool has_attachment = false;
|
||||
foreach(QTreeWidgetItem *item, selectedItems) {
|
||||
qDebug("text(3) URL: %s", item->text(NEWS_URL_COL).toLocal8Bit().data());
|
||||
qDebug("text(2) TITLE: %s", item->text(NEWS_TITLE_COL).toLocal8Bit().data());
|
||||
qDebug("text(3) URL: %s", qPrintable(item->text(NEWS_URL_COL)));
|
||||
qDebug("text(2) TITLE: %s", qPrintable(item->text(NEWS_TITLE_COL)));
|
||||
if(listStreams->getRSSItemFromUrl(item->text(NEWS_URL_COL))->getItem(item->text(NEWS_TITLE_COL))->has_attachment()) {
|
||||
has_attachment = true;
|
||||
break;
|
||||
|
@ -254,7 +254,7 @@ void RSSImp::loadFoldersOpenState() {
|
|||
if(listStreams->getRSSItem(child)->getID() == name) {
|
||||
parent = child;
|
||||
parent->setExpanded(true);
|
||||
qDebug("expanding folder %s", name.toLocal8Bit().data());
|
||||
qDebug("expanding folder %s", qPrintable(name));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -267,7 +267,7 @@ void RSSImp::saveFoldersOpenState() {
|
|||
QList<QTreeWidgetItem*> items = listStreams->getAllOpenFolders();
|
||||
foreach(QTreeWidgetItem* item, items) {
|
||||
QString path = listStreams->getItemPath(item).join("\\");
|
||||
qDebug("saving open folder: %s", path.toLocal8Bit().data());
|
||||
qDebug("saving open folder: %s", qPrintable(path));
|
||||
open_folders << path;
|
||||
}
|
||||
QSettings settings("qBittorrent", "qBittorrent");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue