Bugfix in directory volume wizard, classvolume was suggested for open instead of rootvolume

parent 10de37ff
...@@ -97,6 +97,7 @@ main() ...@@ -97,6 +97,7 @@ main()
extern string dv_default_vid; extern string dv_default_vid;
extern string dv_error_message; extern string dv_error_message;
extern int dv_nomorereg; extern int dv_nomorereg;
extern string dv_open_volume;
string dv_vid[20]; string dv_vid[20];
string project; string project;
...@@ -142,6 +143,7 @@ main() ...@@ -142,6 +143,7 @@ main()
int first_reg = 1; int first_reg = 1;
int first_sim = 1; int first_sim = 1;
string tmp_fname="$pwrp_tmp/wtmp.txt"; string tmp_fname="$pwrp_tmp/wtmp.txt";
int found;
verify(0); verify(0);
...@@ -569,11 +571,24 @@ page_4: ...@@ -569,11 +571,24 @@ page_4:
save/quiet save/quiet
noedit noedit
found = 0;
for ( i = 0; i < volcnt; i++)
if ( dv_vol_class[i] == 0)
dv_open_volume = dv_volumes[i];
found = 1;
break;
endif
endfor
if ( !found)
goto exit_now;
endif
SetSubwindow( "wb_wizard_frame", "wizwin", "$pwr_exe/wb_wiz_directoryvolume_8", 1); SetSubwindow( "wb_wizard_frame", "wizwin", "$pwr_exe/wb_wiz_directoryvolume_8", 1);
if ( dv_quit) if ( dv_quit)
goto exit_now; goto exit_now;
endif endif
open database/volume='dv_volumes[0]' open database/volume='dv_open_volume'
exit_now: exit_now:
CloseGraph("wb_wizard_frame"); CloseGraph("wb_wizard_frame");
......
...@@ -637,7 +637,7 @@ pwr_exe: ...@@ -637,7 +637,7 @@ pwr_exe:
102 33619964 102 33619964
103 0 103 0
12 12
1200 $ccm.dv_volumes[0]##String80 1200 $ccm.dv_open_volume##String80
1201 %s 1201 %s
1202 1 1202 1
1203 1 1203 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment