diff --git a/lolautoaccept.pro b/lolautoaccept.pro index 3a5ec30..d88c979 100644 --- a/lolautoaccept.pro +++ b/lolautoaccept.pro @@ -98,7 +98,7 @@ QMAKE_CLEAN += $$TRANSLATIONSQM unix { $$PWD/linuxdeploy-x86_64.AppImage.commands = wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage && chmod u+x linuxdeploy-x86_64.AppImage - $$PWD/lolautoaccept.png.commands = inkscape -z -e lolautoaccept.png -w 512 -h 512 lolautoaccept.svg + $$PWD/lolautoaccept.png.commands = inkscape -z -e $$PWD/lolautoaccept.png -w 512 -h 512 $$PWD/lolautoaccept.svg appimg.depends = $$PWD/linuxdeploy-x86_64.AppImage $${TARGET} $$PWD/lolautoaccept.png appimg.commands = rm -rf AppDir ; \ diff --git a/src/main.cpp b/src/main.cpp index c38a079..8ad18fa 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -62,9 +62,12 @@ int main(int argc, char** argv) { Log::warn << "translation not found"; } MainWindow win(lolaa); + QIcon icon(QString::fromStdString(base + "lolautoaccept.png")); + win.setWindowIcon(icon); while(!lolaa.init()) { QMessageBox warn; + warn.setWindowIcon(icon); warn.setWindowTitle(MainWindow::tr("LoL-Auto-Accept")); warn.setText(QMessageBox::tr("League of Legends Client not found!")); warn.setInformativeText(QMessageBox::tr("Open the client and retry or close."));