Changeset View
Changeset View
Standalone View
Standalone View
kate/katemainwindow.cpp
Show First 20 Lines • Show All 972 Lines • ▼ Show 20 Line(s) | |||||
973 | 973 | | |||
974 | bool KateMainWindow::showModOnDiskPrompt() | 974 | bool KateMainWindow::showModOnDiskPrompt() | ||
975 | { | 975 | { | ||
976 | KTextEditor::Document *doc; | 976 | KTextEditor::Document *doc; | ||
977 | 977 | | |||
978 | DocVector list; | 978 | DocVector list; | ||
979 | list.reserve(KateApp::self()->documentManager()->documentList().size()); | 979 | list.reserve(KateApp::self()->documentManager()->documentList().size()); | ||
980 | foreach(doc, KateApp::self()->documentManager()->documentList()) { | 980 | foreach(doc, KateApp::self()->documentManager()->documentList()) { | ||
981 | if (KateApp::self()->documentManager()->documentInfo(doc)->modifiedOnDisc) { | 981 | | ||
982 | if (KateApp::self()->documentManager()->documentInfo(doc)->modifiedOnDisc && doc->isModified()) { | ||||
982 | list.append(doc); | 983 | list.append(doc); | ||
983 | } | 984 | } | ||
984 | } | 985 | } | ||
985 | 986 | | |||
986 | if (!list.isEmpty() && !m_modignore) { | 987 | if (!list.isEmpty() && !m_modignore) { | ||
987 | KateMwModOnHdDialog mhdlg(list, this); | 988 | KateMwModOnHdDialog mhdlg(list, this); | ||
988 | m_modignore = true; | 989 | m_modignore = true; | ||
989 | bool res = mhdlg.exec(); | 990 | bool res = mhdlg.exec(); | ||
▲ Show 20 Lines • Show All 272 Lines • Show Last 20 Lines |