Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
PathSafetyWarning Namespace Reference

Functions

bool confirmOutsideProgramDir (QWidget *parent, const QString &path)
 Warns when the user tries to configure a data path inside the program directory.

Function Documentation

◆ confirmOutsideProgramDir()

bool PathSafetyWarning::confirmOutsideProgramDir ( QWidget * parent,
const QString & path )

Warns when the user tries to configure a data path inside the program directory.

Shows a message box explaining that files kept there can be deleted by an update or by uninstalling Cockatrice. Portable builds are always exempt: their data lives beside the executables by design.

Parameters
parentThe parent widget
pathThe path the user is trying to configure
Returns
true when the path is outside the program directory and safe to apply
Here is the call graph for this function:
Here is the caller graph for this function: