CVS Commit by dpage: Disable the recently used files list if there are
require($_SERVER['DOCUMENT_ROOT']."/includes/top_config.php");
?>
CVS Commit by dpage: Disable the recently used files list if there are
Log Message:
-----------
Disable the recently used files list if there are none [Ian Barwick]
Modified Files:
--------------
pgadmin3/src/ui:
frmQuery.cpp (r1.77 -> r1.78)
Index: frmQuery.cpp
===================================================================
RCS file: /projects/pgadmin3/src/ui/frmQuery.cpp,v
retrieving revision 1.77
retrieving revision 1.78
diff -Lsrc/ui/frmQuery.cpp -Lsrc/ui/frmQuery.cpp -u -w -r1.77 -r1.78
--- src/ui/frmQuery.cpp
+++ src/ui/frmQuery.cpp
@@ -749,7 +749,7 @@
changed=false;
setExtendedTitle();
UpdateRecentFiles();
- fileMenu->Enable(MNU_RECENT, ((recentFileMenu->GetMenuItemCount() > 0) ? true : false));
+ fileMenu->Enable(MNU_RECENT, (recentFileMenu->GetMenuItemCount() > 0));
}
}
delete dlg;
@@ -839,7 +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));
+ fileMenu->Enable(MNU_RECENT, (recentFileMenu->GetMenuItemCount() > 0));
}
Home |
Main Index |
Thread Index