Ticket #2232: diskfull.patch
File diskfull.patch, 2.5 KB (added by , 16 years ago) |
---|
-
installer/CopyEngine.cpp
74 74 { 75 75 status_t err = Start(fWindow->GetSourceMenu(), 76 76 fWindow->GetTargetMenu()); 77 if (err != B_OK ) {77 if (err != B_OK || fControl->CheckUserCanceled()) { 78 78 ERR("Start failed"); 79 SetStatusMessage("Installation aborted." ); 79 80 BMessenger(fWindow).SendMessage(RESET_INSTALL); 80 81 } 81 82 break; … … 283 284 BPath path; 284 285 entry.GetPath(&path); 285 286 ERR2("error while copying %s", path.Path()); 287 fControl->Cancel(false); 286 288 } 287 289 } 288 290 } -
installer/InstallerCopyLoopControl.cpp
100 100 101 101 102 102 bool 103 InstallerCopyLoopControl::Cancel( )103 InstallerCopyLoopControl::Cancel(bool alert) 104 104 { 105 fUserCanceled = (new BAlert("",105 fUserCanceled = alert ? (new BAlert("", 106 106 "Are you sure you want to to stop the installation?", 107 107 "Continue", "Stop", 0, 108 B_WIDTH_AS_USUAL, B_STOP_ALERT))->Go() != 0 ;108 B_WIDTH_AS_USUAL, B_STOP_ALERT))->Go() != 0 : true; 109 109 return fUserCanceled; 110 110 } 111 111 -
installer/InstallerWindow.cpp
217 217 } 218 218 break; 219 219 case kFinished: 220 SetStatusMessage("Installation completed."); 220 221 PostMessage(B_QUIT_REQUESTED); 221 222 break; 222 223 case kCancelled: -
installer/InstallerCopyLoopControl.h
35 35 virtual bool ChecksumFile(const entry_ref *); 36 36 virtual bool SkipAttribute(const char *attributeName); 37 37 virtual bool PreserveAttribute(const char *attributeName); 38 bool Cancel( );38 bool Cancel(bool alert = true); 39 39 void Reset(); 40 40 41 41 private: -
installer/FSUtils.cpp
831 831 if (gStatusWindow) 832 832 gStatusWindow->RemoveStatusItem(thread); 833 833 834 return B_OK;834 return result; 835 835 } 836 836 837 837 class FailWithAlert {