Commit 0f04f083 authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

ProjectExplorer: Fixed static storage of Icons.

parent b7512a2d
......@@ -149,15 +149,11 @@ bool FileNode::isGenerated() const
\see FileNode
\see ProjectNode
*/
FolderNode::FolderNode(const QString &folderPath)
: Node(FolderNodeType, folderPath),
m_folderName(folderPath)
FolderNode::FolderNode(const QString &folderPath) :
Node(FolderNodeType, folderPath),
m_folderName(folderPath),
m_icon(QApplication::style()->standardIcon(QStyle::SP_DirIcon))
{
static QIcon dirIcon;
if (dirIcon.isNull()) {
dirIcon = QApplication::style()->standardIcon(QStyle::SP_DirIcon);
}
m_icon = dirIcon;
}
FolderNode::~FolderNode()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment