{
HYDROGUI_ImportImageDlg* aPanel = (HYDROGUI_ImportImageDlg*)inputPanel();
+ if( !myIsEdit )
+ {
+ QString aFilePath = aPanel->getFileName();
+ if( aFilePath.isEmpty() )
+ {
+ theErrorMsg = tr( "SELECT_IMAGE_FILE" ).arg( aFilePath );
+ return false;
+ }
+ }
+
QString anImageName = aPanel->getImageName();
if( anImageName.isEmpty() )
+ {
+ theErrorMsg = tr( "SELECT_IMAGE_NAME" ).arg( anImageName );
return false;
+ }
if( !myIsEdit || ( !myEditedObject.IsNull() && myEditedObject->GetName() != anImageName ) )
{
<source>CANT_LOAD_GEOREFERENCEMENT_FILE</source>
<translation>Can't load data from the image georeferencement file.</translation>
</message>
+ <message>
+ <source>SELECT_IMAGE_NAME</source>
+ <translation>The image name is not input</translation>
+ </message>
+ <message>
+ <source>SELECT_IMAGE_FILE</source>
+ <translation>The image file is not chosen</translation>
+ </message>
</context>
<context>