Commit 15cdc7b1 authored by Robert Knight's avatar Robert Knight
Browse files

Avoid changing tab icon if the new proposed icon and current tab icon have the same content.

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=675989
parent a49bb86b
......@@ -20,6 +20,9 @@
// Own
#include "ViewProperties.h"
// Qt
#include <QtDebug>
using namespace Konsole;
ViewProperties::ViewProperties(QObject* parent)
......@@ -52,8 +55,14 @@ void ViewProperties::setTitle(const QString& title)
void ViewProperties::setIcon(const QIcon& icon)
_icon = icon;
emit iconChanged(this);
// the icon's cache key is used to determine whether this icon is the same
// as the old one. if so no signal is emitted.
if ( icon.cacheKey() != _icon.cacheKey() )
_icon = icon;
emit iconChanged(this);
void ViewProperties::setIdentifier(int id)
Supports Markdown
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