Permalink
Browse files

Don't ask for minutes if 'Cancel' is selected or window was closed wi…

…thout selecting any option.
  • Loading branch information...
1 parent b038840 commit 89b8562b128c9d8dc0aa58e127bdb29b3d2700f4 @kornl kornl committed Mar 1, 2014
Showing with 2 additions and 0 deletions.
  1. +2 −0 R/os.manage.r
View
@@ -215,6 +215,8 @@ os.manage <- function(use_GUI = TRUE, ask = TRUE, ...) {
the_answer <- menu(choices, graphics = use_GUI, title = "Manage your OS (for Windows)")
+ if (the_answer==0 || choices[the_answer]=="Cancel") return(FALSE)
+
# in how many minutes to perform the operation?
if(ask) minutes <-
winDialogString(

0 comments on commit 89b8562

Please sign in to comment.