mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-10 09:19:01 +00:00
Allow only 1 instance of the uxt editor.
This commit is contained in:
parent
80d0c7c9c6
commit
b86fce833c
1 changed files with 6 additions and 1 deletions
|
@ -552,8 +552,13 @@ void CMainWindow::mergeSingleFile()
|
||||||
|
|
||||||
void CMainWindow::onUxtClicked()
|
void CMainWindow::onUxtClicked()
|
||||||
{
|
{
|
||||||
UXTEditor *e = new UXTEditor();
|
|
||||||
QString path = work_path + "/" + QString( Constants::WK_UXT );
|
QString path = work_path + "/" + QString( Constants::WK_UXT );
|
||||||
|
path.replace( "\\", "/" );
|
||||||
|
|
||||||
|
if( getEditorByWindowFilePath( path ) != NULL )
|
||||||
|
return;
|
||||||
|
|
||||||
|
UXTEditor *e = new UXTEditor();
|
||||||
e->open( path );
|
e->open( path );
|
||||||
e->setCurrentFile( path );
|
e->setCurrentFile( path );
|
||||||
_ui.mdiArea->addSubWindow( e );
|
_ui.mdiArea->addSubWindow( e );
|
||||||
|
|
Loading…
Reference in a new issue