MCPcopy Create free account
hub / github.com/KDE/kdevelop / userWantsReopen

Method userWantsReopen

kdevplatform/shell/projectcontroller.cpp:506–515  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

504}
505
506bool ProjectDialogProvider::userWantsReopen()
507{
508 Q_ASSERT(d);
509 return (KMessageBox::questionTwoActions(
510 d->m_core->uiControllerInternal()->defaultMainWindow(), i18n("Reopen the current project?"), {},
511 KGuiItem(i18nc("@action:button", "Reopen"), QStringLiteral("view-refresh")), KStandardGuiItem::cancel())
512 == KMessageBox::SecondaryAction)
513 ? false
514 : true;
515}
516
517void ProjectController::setDialogProvider(IProjectDialogProvider* dialog)
518{

Callers 1

importProjectMethod · 0.45

Calls 2

defaultMainWindowMethod · 0.80
uiControllerInternalMethod · 0.80

Tested by

no test coverage detected