When 'closeUrl()' is complete, also clear the currently set URL.

This allows applications to detect whether a document is loaded simply by checking
whether 'url()' returns an empty URL or not.
remotes/origin/textfind-and-transparency
Michel Ludwig 15 years ago
parent 9ed86abb6c
commit b9da827e73
  1. 5
      part.cpp

@ -1161,7 +1161,10 @@ bool Part::closeUrl()
#ifdef OKULAR_KEEP_FILE_OPEN
m_keeper->close();
#endif
return KParts::ReadOnlyPart::closeUrl();
bool r = KParts::ReadOnlyPart::closeUrl();
setUrl(KUrl());
return r;
}

Loading…
Cancel
Save