Skip to content

Commit

Permalink
Removed internal icon engine
Browse files Browse the repository at this point in the history
It could interfere with the active icon engine.

Fixes #788
  • Loading branch information
tsujan committed Feb 28, 2022
1 parent 86bf433 commit 54712d7
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 128 deletions.
8 changes: 1 addition & 7 deletions src/core/iconinfo.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include "iconinfo.h"
#include "iconinfo_p.h"
#include <cstring>

namespace Fm {
Expand Down Expand Up @@ -68,12 +67,7 @@ void IconInfo::updateQIcons() {

QIcon IconInfo::qicon() const {
if(Q_UNLIKELY(qicon_.isNull() && gicon_)) {
if(!G_IS_FILE_ICON(gicon_.get())) {
qicon_ = QIcon(new IconEngine{shared_from_this()});
}
else {
qicon_ = getFirst(internalQicons_);
}
qicon_ = internalQicon();
}
return qicon_;
}
Expand Down
1 change: 0 additions & 1 deletion src/core/iconinfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ namespace Fm {

class LIBFM_QT_API IconInfo: public std::enable_shared_from_this<IconInfo> {
public:
friend class IconEngine;

explicit IconInfo() {}

Expand Down
120 changes: 0 additions & 120 deletions src/core/iconinfo_p.h

This file was deleted.

0 comments on commit 54712d7

Please sign in to comment.