Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Openvibe Group
extras
Commits
6d2e79fa
Commit
6d2e79fa
authored
Sep 30, 2015
by
Serrière Guillaume
Browse files
Designer: Update the current scenario when a scenario is deleted.
Signed-off-by:
Serrière Guillaume
<
guillaume.serriere@inria.fr
>
parent
131610c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
applications/platform/designer/src/ovdCApplication.cpp
View file @
6d2e79fa
...
...
@@ -1254,7 +1254,7 @@ boolean CApplication::hasUnsavedScenario(void)
CInterfacedScenario
*
CApplication
::
getCurrentInterfacedScenario
(
void
)
{
if
(
m_i32CurrentScenarioPage
<
static_cast
<
int32
>
(
m_vInterfacedScenario
.
size
())
&&
m_i32CurrentScenarioPage
>=
0
)
if
(
m_i32CurrentScenarioPage
<
static_cast
<
int32
>
(
m_vInterfacedScenario
.
size
())
&&
m_i32CurrentScenarioPage
>=
0
)
{
return
m_vInterfacedScenario
[
m_i32CurrentScenarioPage
];
}
...
...
@@ -1756,6 +1756,9 @@ void CApplication::closeScenarioCB(CInterfacedScenario* pInterfacedScenario)
resetVolatileScenarioDirectoryToken
();
changeCurrentScenario
(
-
1
);
}
else
{
changeCurrentScenario
(
static_cast
<
uint32
>
(
gtk_notebook_get_current_page
(
m_pScenarioNotebook
)));
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment