Log Message:
-----------
Disable the recently used files list if there are none [Ian Barwick]
Modified Files:
--------------
pgadmin3/pkg/win32:
pgadmin3.wsi (r1.24 -> r1.25)
pgadmin3.wsm (r1.7 -> r1.8)
pgadmin3/src/ui:
frmQuery.cpp (r1.76 -> r1.77)
Index: frmQuery.cpp
===================================================================
RCS file: /projects/pgadmin3/src/ui/frmQuery.cpp,v
retrieving revision 1.76
retrieving revision 1.77
diff -Lsrc/ui/frmQuery.cpp -Lsrc/ui/frmQuery.cpp -u -w -r1.76 -r1.77
--- src/ui/frmQuery.cpp
+++ src/ui/frmQuery.cpp
@@ -749,6 +749,7 @@
changed=false;
setExtendedTitle();
UpdateRecentFiles();
+ fileMenu->Enable(MNU_RECENT, ((recentFileMenu->GetMenuItemCount()
> 0) ? true : false));
}
}
delete dlg;
@@ -838,6 +839,7 @@
queryMenu->Enable(MNU_EXPLAIN, !running);
queryMenu->Enable(MNU_CANCEL, running);
fileMenu->Enable(MNU_EXPORT, sqlResult->CanExport());
+ fileMenu->Enable(MNU_RECENT, ((recentFileMenu->GetMenuItemCount() > 0) ?
true : false));
}
---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to [EMAIL PROTECTED] so that your
message can get through to the mailing list cleanly