Fixed not informated error when generating crossword without loaded grid
This commit is contained in:
@@ -114,8 +114,8 @@ void MainFrame::onGenerateClick(wxCommandEvent &event) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
std::vector<wxString> words_out;
|
std::vector<wxString> words_out;
|
||||||
if ( _dict.empty() ){
|
if ( _grid.empty() ){
|
||||||
wxMessageBox( _("Crossword grid isn't loaded!"), _("Info"), wxICON_INFORMATION);
|
wxMessageBox( _("Crossword grid isn't loaded!"), _("Warning"), wxICON_WARNING);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
@@ -153,7 +153,7 @@ void MainFrame::onGenerateClick(wxCommandEvent &event) {
|
|||||||
|
|
||||||
void MainFrame::onExportClick(wxCommandEvent& event) {
|
void MainFrame::onExportClick(wxCommandEvent& event) {
|
||||||
if ( _grid.empty() ) {
|
if ( _grid.empty() ) {
|
||||||
wxMessageBox( _("Grid isn't loaded now"), _("Info"), wxICON_INFORMATION );
|
wxMessageBox( _("Grid isn't loaded now"), _("Info"), wxICON_WARNING );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
wxFileDialog dlgSave(this, _("Exporting crossword"), wxEmptyString, wxEmptyString,
|
wxFileDialog dlgSave(this, _("Exporting crossword"), wxEmptyString, wxEmptyString,
|
||||||
|
|||||||
Reference in New Issue
Block a user