mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-15 03:28:49 -07:00
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:
parent
b8cd3af21f
commit
8cbc4c91f6
2 changed files with 27 additions and 11 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue