Skip to content

Commit

Permalink
Beeter Add detect savefile Begins "file:"
Browse files Browse the repository at this point in the history
  • Loading branch information
eloaders committed Dec 30, 2013
1 parent f462f45 commit f779458
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/i-nex/.src/FReport_Gen.class
Original file line number Diff line number Diff line change
Expand Up @@ -128,20 +128,19 @@ Public Sub ButtonBox1_Click()

If ChkPrm.ChkExec("kdialog") = True Then
Exec ["kdialog", "--getsaveurl", "~/", ".txt"] Wait To savefile
ButtonBox1.Text = Replace(savefile, "file://", "")
Else If ChkPrm.ChkExec("yad") = True Then
Exec ["yad", "--width=600", "--height=500", "--align=center", "--file-selection", "--filename=report.txt", "--file-filter=*.txt"] Wait To savefile
ButtonBox1.Text = Replace(savefile, "file://", "")
Else If ChkPrm.ChkExec("zenity") = True Then
Exec ["zenity", "--file-selection", "--confirm-overwrite", "--filename=report.txt", "--file-filter=*.txt"] Wait To savefile
ButtonBox1.Text = Replace(savefile, "file://", "")
Else
Dialog.Title = "Choose a file"
Dialog.Filter = ["*.txt", "Text files"]
Dialog.SaveFile
ButtonBox1.Text = Dialog.Path
Endif

' If savefile Begins "file:" Then
' ButtonBox1.Text = Replace(savefile, "file://", "")
' Endif
If Exist(ButtonBox1.Text, True) Then
Try Kill ButtonBox1.Text
Endif
Expand Down

0 comments on commit f779458

Please sign in to comment.