From d7cd29f24f7f777cb0623d611200683f45994a01 Mon Sep 17 00:00:00 2001 From: Aleksey Lobanov Date: Mon, 22 Jun 2015 15:16:05 +0300 Subject: [PATCH] Fixed not informated error when generating crossword without loaded grid --- wxCrossGen/fmain.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wxCrossGen/fmain.cpp b/wxCrossGen/fmain.cpp index 464d2b8..5de3a8a 100644 --- a/wxCrossGen/fmain.cpp +++ b/wxCrossGen/fmain.cpp @@ -114,8 +114,8 @@ void MainFrame::onGenerateClick(wxCommandEvent &event) { } std::vector words_out; - if ( _dict.empty() ){ - wxMessageBox( _("Crossword grid isn't loaded!"), _("Info"), wxICON_INFORMATION); + if ( _grid.empty() ){ + wxMessageBox( _("Crossword grid isn't loaded!"), _("Warning"), wxICON_WARNING); return; } try { @@ -153,7 +153,7 @@ void MainFrame::onGenerateClick(wxCommandEvent &event) { void MainFrame::onExportClick(wxCommandEvent& event) { if ( _grid.empty() ) { - wxMessageBox( _("Grid isn't loaded now"), _("Info"), wxICON_INFORMATION ); + wxMessageBox( _("Grid isn't loaded now"), _("Info"), wxICON_WARNING ); return; } wxFileDialog dlgSave(this, _("Exporting crossword"), wxEmptyString, wxEmptyString,