Project

General

Profile

Feature #881

Editor: Allow only one instance of OpenCS

Added by Marc Zinnschlag over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Editor
Target version:
Start date:
08/11/2013
% Done:

100%

Spent time:
Severity:
Normal

Description

Since OpenCS can handle multiple projects at the same time, there is no benefit in running multiple instances of the application (this can even cause problems with global settings).

When the user tries to start a new instance of OpenCS, instead the start window of the existing instance should be opened.

Associated revisions

Revision 563bd0b4 (diff)
Added by Marc Bouvier over 3 years ago

[Feature #881] Raise OpenCS New Window After Re-execution

The OpenCS startup window of the existing exist is raised when trying to
start a new instance. This is done by the new instance connection to the
existing instance's QLocalServer. Once the connection is established the
existing instance raises the startup window.

Revision 0ae2bb2f (diff)
Added by Marc Bouvier over 3 years ago

[Feature #881] Code Formatting

Code formatted to the OpenMW policy.

Revision 6b11f59e (diff)
Added by Marc Bouvier over 3 years ago

[Feature #881] Rename QLocalServer

The server name should be more unique to the project so there isn't a
interprocess clash.

Revision 784cba21 (diff)
Added by Marc Bouvier over 3 years ago

[Feature #881] Change Tabs to Spaces

Some of the tabs were not made of spaces, so Git defaults tabs to the
length of 8 spaces. OpenMW uses 4 spaces per tab.

History

#1 Updated by Marc Zinnschlag over 3 years ago

  • Subject changed from Edit: Allow only one instance of OpenCS to Editor: Allow only one instance of OpenCS

#2 Updated by Marc Zinnschlag over 3 years ago

  • Assignee set to Marc Bouvier

#3 Updated by Marc Zinnschlag over 3 years ago

  • Target version changed from openmw-0.26 to openmw-0.27

#4 Updated by Marc Bouvier over 3 years ago

  • % Done changed from 0 to 50

I have working example using QSharedMemory to only allow one instance. I am working on getting the start window to come up after the user tries to start a new instance using QLocalServer and QLocalSocket.

#5 Updated by Marc Zinnschlag over 3 years ago

  • Status changed from New to Closed
  • % Done changed from 50 to 100

Also available in: Atom PDF