MCPcopy Create free account
hub / github.com/KDE/kdiff3 / closeEvent

Method closeEvent

src/kdiff3_shell.cpp:63–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63void KDiff3Shell::closeEvent(QCloseEvent* e)
64{
65 if(queryClose())
66 {
67 e->accept();
68 bool bFileSaved = m_widget->isFileSaved();
69 bool bDirCompare = m_widget->isDirComparison();
70 QApplication::exit(bFileSaved || bDirCompare ? 0 : 1);
71 }
72 else
73 e->ignore();
74}
75
76void KDiff3Shell::optionsShowToolbar()
77{

Callers

nothing calls this directly

Calls 3

isFileSavedMethod · 0.80
isDirComparisonMethod · 0.80
acceptMethod · 0.45

Tested by

no test coverage detected