free qprocess on oracle update fail (#4134)

* free qprocess on oracle update fail

reload the database whenever oracle exits
search for oracle in ../oracle so you can use it from the build dir

* only ask for the db updater once
This commit is contained in:
ebbit1q 2020-10-21 16:31:18 +02:00 committed by GitHub
parent b8cd3af21f
commit 8cbc4c91f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 11 deletions

View file

@ -116,11 +116,11 @@ private:
void createTrayIcon();
void createTrayActions();
int getNextCustomSetPrefix(QDir dataDir);
// TODO: add a preference item to choose updater name for other games
inline QString getCardUpdaterBinaryName()
{
return "oracle";
};
void exitCardDatabaseUpdate();
QList<QMenu *> tabMenus;
QMenu *cockatriceMenu, *dbMenu, *helpMenu, *trayIconMenu;
@ -132,7 +132,7 @@ private:
RemoteClient *client;
QThread *clientThread;
LocalServer *localServer;
bool bHasActivated;
bool bHasActivated, askedForDbUpdater;
QMessageBox serverShutdownMessageBox;
QProcess *cardUpdateProcess;
DlgViewLog *logviewDialog;