From 2e5d611af48739f02dc25a362d3c79746a6e3ac7 Mon Sep 17 00:00:00 2001
From: Rafael <Syping@users.noreply.github.com>
Date: Tue, 29 Mar 2016 18:52:25 +0200
Subject: [PATCH] add icon for Unix-style system

---
 UserInterface.cpp | 1 +
 gta5sync.pro      | 4 +++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/UserInterface.cpp b/UserInterface.cpp
index 1a40536..cf93908 100755
--- a/UserInterface.cpp
+++ b/UserInterface.cpp
@@ -176,6 +176,7 @@ void UserInterface::openSelectProfile()
 void UserInterface::on_actionAbout_gta5sync_triggered()
 {
     AboutDialog *aboutDialog = new AboutDialog(this);
+    aboutDialog->setWindowIcon(this->windowIcon());
     aboutDialog->setWindowFlags(aboutDialog->windowFlags()^Qt::WindowContextHelpButtonHint);
     aboutDialog->show();
     aboutDialog->exec();
diff --git a/gta5sync.pro b/gta5sync.pro
index 77b2c15..995b882 100755
--- a/gta5sync.pro
+++ b/gta5sync.pro
@@ -104,8 +104,10 @@ isEqual(QT_MAJOR_VERSION, 4): SOURCES += qjson4/QJsonArray.cpp \
 
 unix: !macx: appfiles.path = $$(INSTALL_PATH)/share/applications
 unix: !macx: appfiles.files = $$PWD/res/gta5sync.desktop
+unix: !macx: pixmaps.path = $$(INSTALL_PATH)/share/pixmaps
+unix: !macx: pixmaps.files = $$PWD/res/gta5sync.xpm
 unix: !macx: target.path = $$(INSTALL_PATH)/bin
-unix: !macx: INSTALLS += target appfiles
+unix: !macx: INSTALLS += target appfiles pixmaps
 
 # STATIC BUILD STUFF
 static: isEqual(QT_MAJOR_VERSION, 4): QTPLUGIN += qjpcodecs