Changeset 7380 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Mar 7, 2008 11:02:26 PM (17 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp
r7351 r7380 1878 1878 1879 1879 for (QValueList <CMachine>::Iterator m = machines.begin(); 1880 /* machines.end() means global config => manual loop break */ ;)1880 m != machines.end(); ++ m) 1881 1881 { 1882 if (m == machines.end()) 1882 CSession session = openSession ((*m).GetId()); 1883 if (!session.isNull()) 1883 1884 { 1884 if (isGlobalConverted) 1885 { 1886 if (rc == QIMessageBox::No) 1887 mVBox.SaveSettingsWithBackup(); 1888 else 1889 mVBox.SaveSettings(); 1890 1891 if (!mVBox.isOk()) 1892 vboxProblem().cannotSaveGlobalSettings (mVBox); 1893 } 1885 CMachine sm = session.GetMachine(); 1886 if (rc == QIMessageBox::No) 1887 sm.SaveSettingsWithBackup(); 1888 else 1889 sm.SaveSettings(); 1890 ; 1891 if (!sm.isOk()) 1892 vboxProblem().cannotSaveMachineSettings (sm); 1893 session.Close(); 1894 1894 } 1895 } 1896 1897 if (isGlobalConverted) 1898 { 1899 if (rc == QIMessageBox::No) 1900 mVBox.SaveSettingsWithBackup(); 1895 1901 else 1896 { 1897 CSession session = openSession ((*m).GetId()); 1898 if (!session.isNull()) 1899 { 1900 CMachine sm = session.GetMachine(); 1901 if (rc == QIMessageBox::No) 1902 sm.SaveSettingsWithBackup(); 1903 else 1904 sm.SaveSettings(); 1905 ; 1906 if (!sm.isOk()) 1907 vboxProblem().cannotSaveMachineSettings (sm); 1908 session.Close(); 1909 } 1910 } 1911 1912 if (m == machines.end()) 1913 break; 1914 1915 ++ m; 1902 mVBox.SaveSettings(); 1903 1904 if (!mVBox.isOk()) 1905 vboxProblem().cannotSaveGlobalSettings (mVBox); 1916 1906 } 1917 1907 } -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxProblemReporter.cpp
r7351 r7380 1656 1656 "be possible to use these settings files with an older version of " 1657 1657 "VirtualBox in the future);</li>" 1658 "<li><b>Backup</b> to create backup copies of settings files in "1658 "<li><b>Backup</b> to create backup copies of the settings files in " 1659 1659 "the old format before saving them in the new format;</li>" 1660 "<li><b>Cancel</b> to not save the settings files now.<li>" 1660 "<li><b>Cancel</b> to not save the auto-converted settings files " 1661 "now.<li>" 1661 1662 "</ul>" 1662 1663 "<p>Note that if you select <b>Cancel</b>, the auto-converted "
Note:
See TracChangeset
for help on using the changeset viewer.