Commits

Anonymous committed 9964dec

tml11: #i110071#: use more specific error message in the GroupWise case

  • Participants
  • Parent commits f387649

Comments (0)

Files changed (3)

File extensions/source/abpilot/abpresid.hrc

 #define RID_QRY_NOTABLES				( RID_QUERYBOX_START +  0 )
 // please adjust RID_QUERYBOX_END (below) when adding new query boxes
 
-#define RID_QUERYBOX_END				RID_QRY_NOTABLES
+#define RID_QRY_NO_EVO_GW				( RID_QUERYBOX_START +  1 )
+
+#define RID_QUERYBOX_END				RID_QRY_NO_EVO_GW
 
 //========================================================================
 // untyped resources

File extensions/source/abpilot/abspilot.cxx

 			if ( aTables.empty() )
             {
                 if  (   ( _eReason == eValidateNoUI )
-				    ||  ( RET_YES != QueryBox( this, ModuleRes( RID_QRY_NOTABLES ) ).Execute() )
+                    ||  ( RET_YES != QueryBox( this, 
+                                               ModuleRes( ( getSettings().eType == AST_EVOLUTION_GROUPWISE ?
+                                                             RID_QRY_NO_EVO_GW : RID_QRY_NOTABLES ) )
+                                             ).Execute() )
                     )
                 {
                     // cannot ask the user, or the user chose to use this data source, though there are no tables

File extensions/source/abpilot/abspilot.src

 };
 
 //........................................................................
+QueryBox RID_QRY_NO_EVO_GW
+{
+	Buttons = WB_YES_NO;
+	DefButton = WB_DEF_NO;
+
+	Message [ en-US ] = "You don't seem to have any GroupWise account configured in Evolution.\nDo you want to set it up as an address data source, anyway?";
+};
+
+//........................................................................
 String RID_STR_DEFAULT_NAME
 {
 	Text [ en-US ] = "Addresses";