mirror of
https://github.com/reactos/CMake.git
synced 2024-11-25 12:40:06 +00:00
ENH: add a check before delete cache
This commit is contained in:
parent
116f61c75c
commit
e4a1823f43
@ -543,9 +543,18 @@ void CMakeSetupDialog::doReloadCache()
|
||||
}
|
||||
|
||||
void CMakeSetupDialog::doDeleteCache()
|
||||
{
|
||||
{
|
||||
QString title = tr("Delete Cache");
|
||||
QString message = "Are you sure you want to delete the cache?";
|
||||
QMessageBox::StandardButton btn;
|
||||
btn = QMessageBox::information(this, title, message,
|
||||
QMessageBox::Yes | QMessageBox::No);
|
||||
if(btn == QMessageBox::No)
|
||||
{
|
||||
return;
|
||||
}
|
||||
QMetaObject::invokeMethod(this->CMakeThread->cmakeInstance(),
|
||||
"deleteCache", Qt::QueuedConnection);
|
||||
"deleteCache", Qt::QueuedConnection);
|
||||
}
|
||||
|
||||
void CMakeSetupDialog::doAbout()
|
||||
|
Loading…
Reference in New Issue
Block a user