mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-12 09:04:53 -07:00
path fix
This commit is contained in:
parent
8a919e572f
commit
3d1052f54c
3 changed files with 3 additions and 6 deletions
|
|
@ -46,7 +46,7 @@ int main(int argc, char *argv[])
|
|||
{
|
||||
// qInstallMsgHandler(myMessageOutput);
|
||||
QApplication app(argc, argv);
|
||||
app.addLibraryPath("plugins");
|
||||
app.addLibraryPath(app.applicationDirPath() + "/plugins");
|
||||
QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8"));
|
||||
|
||||
QCoreApplication::setOrganizationName("Cockatrice");
|
||||
|
|
@ -73,10 +73,8 @@ int main(int argc, char *argv[])
|
|||
MainWindow ui(&translator);
|
||||
qDebug("main(): MainWindow constructor finished");
|
||||
|
||||
//set Icon
|
||||
QIcon icon("resources/icon.svg");
|
||||
QIcon icon(":/resources/icon.svg");
|
||||
ui.setWindowIcon(icon);
|
||||
//
|
||||
|
||||
ui.show();
|
||||
qDebug("main(): ui.show() finished");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue