crc = for_each(fname.begin(), fname.end(), crc);
createView(crc.checksum());
current_view_->openDocument(fname);
- if (current_view_ && !current_view_->documentBufferView())
+ if (!current_view_->documentBufferView())
current_view_->close();
- } else
+ else {
+ current_view_->raise();
+ current_view_->activateWindow();
+ current_view_->showNormal();
+ }
+ } else {
current_view_->openDocument(fname);
+ current_view_->raise();
+ current_view_->activateWindow();
+ current_view_->showNormal();
+ }
break;
}
- Added a new module "Title and Preamble Hacks".
+- Bring window to front after loading a document in single instance (bug 7875).
+
* DOCUMENTATION AND LOCALIZATION