Commit c4bd38db authored by a b's avatar a b
Browse files

Mac fixes

parent b33b3778
TEMPLATE = app
TARGET =
TARGET = cockatrice
DEPENDPATH += . src ../common
INCLUDEPATH += . src ../common
MOC_DIR = build
......@@ -202,6 +202,6 @@ win32 {
}
macx {
ICON = resources/appicon.icns
CONFIG += x86 ppc
CONFIG += x86_64 release
LIBS += -bind_at_load
}
......@@ -238,7 +238,7 @@ void PictureLoadingThread::run()
pictureLoader->setPicsPath(picsPath);
pictureLoader->setPicDownload(picDownload);
usleep(100);
usleep(10000);
initWaitCondition.wakeAll();
exec();
......@@ -715,4 +715,4 @@ void CardDatabase::picsPathChanged()
{
loadingThread->getPictureLoader()->setPicsPath(settingsCache->getPicsPath());
clearPixmapCache();
}
\ No newline at end of file
}
......@@ -73,11 +73,11 @@ int main(int argc, char *argv[])
#ifdef Q_OS_MAC
QDir baseDir(app.applicationDirPath());
baseDir.cdUp();
baseDir.cdUp();
baseDir.cdUp();
QDir pluginsDir = baseDir;
pluginsDir.cd("PlugIns");
app.addLibraryPath(pluginsDir.absolutePath());
baseDir.cdUp();
baseDir.cdUp();
#endif
#ifdef Q_OS_WIN
app.addLibraryPath(app.applicationDirPath() + "/plugins");
......@@ -116,8 +116,10 @@ int main(int argc, char *argv[])
}
if (startMainProgram) {
qDebug("main(): starting main program");
soundEngine = new SoundEngine;
qDebug("main(): SoundEngine constructor finished");
MainWindow ui;
qDebug("main(): MainWindow constructor finished");
......@@ -129,7 +131,8 @@ int main(int argc, char *argv[])
app.exec();
}
qDebug("Event loop finished, terminating...");
delete db;
delete settingsCache;
delete rng;
......
......@@ -395,7 +395,7 @@ void WndDeckEditor::actPrintDeck()
void WndDeckEditor::actEditSets()
{
WndSets *w = new WndSets(this);
WndSets *w = new WndSets;
w->setWindowModality(Qt::WindowModal);
w->show();
}
......
......@@ -10,6 +10,7 @@ HEADERS += src/oracleimporter.h src/window_main.h ../cockatrice/src/carddatabase
SOURCES += src/main.cpp src/oracleimporter.cpp src/window_main.cpp ../cockatrice/src/carddatabase.cpp ../cockatrice/src/settingscache.cpp
macx {
CONFIG += x86 ppc
# CONFIG += x86 ppc
CONFIG += x86_64 release
LIBS += -bind_at_load
}
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