diff --git a/MainWindow/MainWindowM.vb b/MainWindow/MainWindowM.vb index 82c6bb1..0aa2299 100644 --- a/MainWindow/MainWindowM.vb +++ b/MainWindow/MainWindowM.vb @@ -291,7 +291,7 @@ Public Class MainWindowM ' Leggo nome cartella delle foto GetMainPrivateProfileString(S_GENERAL, K_PHOTODIR, sDataRoot & "\Data", m_sPhotoDir) ' Creo connessione al Db - If m_SlabDB And Not ManageDb.ConnectToDb(m_sPhotoDir & "\" & DB_FILENAME) Then + If m_SlabDB AndAlso Not ManageDb.ConnectToDb(m_sPhotoDir & "\" & DB_FILENAME) Then EgtOutLog("Error connecting to DB") MessageBox.Show(EgtMsg(92000 + 1), EgtMsg(MSG_EGTMSGBOX + 15), MessageBoxButton.OK, MessageBoxImage.Error) m_SlabDB = False