Commit b9c8ee9f authored by Johnny Jazeix's avatar Johnny Jazeix

Correction de 2 petites erreurs

parent 6dd654d0
......@@ -291,10 +291,14 @@ void Interface_graphic::on_fullscreen_triggered(){
}
void Interface_graphic::on_toolbar_menu_triggered(){
if (_ui_toolbar_check->isChecked())
if (_ui_toolbar_check->isChecked()){
_ui_toolbar_check->setText("Hide toolbar");
_ui_toolbar->show();
else
}
else{
_ui_toolbar_check->setText("Show toolbar");
_ui_toolbar->hide();
}
}
void Interface_graphic::on_show_info_triggered(){
......
......@@ -26,6 +26,14 @@
<normaloff>:/icon/icon/vite.png</normaloff>:/icon/icon/vite.png</iconset>
</property>
<widget class="QWidget" name="centralwidget" >
<property name="geometry" >
<rect>
<x>0</x>
<y>64</y>
<width>1170</width>
<height>619</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2" >
<item>
<layout class="QVBoxLayout" name="render_area_layout" />
......@@ -189,6 +197,14 @@
<addaction name="menuHelp" />
</widget>
<widget class="QToolBar" name="toolBar" >
<property name="geometry" >
<rect>
<x>0</x>
<y>26</y>
<width>1170</width>
<height>38</height>
</rect>
</property>
<property name="windowTitle" >
<string>toolBar</string>
</property>
......
......@@ -36,6 +36,10 @@ void ParserPaje::parse(string filename, Trace &trace){
// We check if we have an event identifier
if(Error::set_and_print_if (sscanf(event_identity_string.c_str(), "%d", &event_identity) != 1,
Error::_EXPECT_ID_DEF, line.get_line_count(), Error::_ERROR)){
// We flush the errors
Error::flush_in_file("log.txt");
// The line can not be recognised by the parser Paje, we can not continue.
throw Error::_UNKNOWN_LINE;
//return ;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment