Changeset 7380 in vbox
- Timestamp:
- Mar 7, 2008 11:02:26 PM (17 years ago)
- Location:
- trunk/src/VBox/Frontends
- Files:
-
- 4 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 " -
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxGlobal.cpp
r7372 r7380 1888 1888 * (QIMessageBox::No = Backup, QIMessageBox::Yes = Save) */ 1889 1889 1890 for (QList <CMachine>::Iterator m = machines.begin(); 1891 /* machines.end() means global config => manual loop break */ ;) 1890 foreach (CMachine m, machines) 1892 1891 { 1893 if (m == machines.end()) 1892 CSession session = openSession (m.GetId()); 1893 if (!session.isNull()) 1894 1894 { 1895 if (isGlobalConverted) 1896 { 1897 if (rc == QIMessageBox::No) 1898 mVBox.SaveSettingsWithBackup(); 1899 else 1900 mVBox.SaveSettings(); 1901 1902 if (!mVBox.isOk()) 1903 vboxProblem().cannotSaveGlobalSettings (mVBox); 1904 } 1895 CMachine sm = session.GetMachine(); 1896 if (rc == QIMessageBox::No) 1897 sm.SaveSettingsWithBackup(); 1898 else 1899 sm.SaveSettings(); 1900 ; 1901 if (!sm.isOk()) 1902 vboxProblem().cannotSaveMachineSettings (sm); 1903 session.Close(); 1905 1904 } 1905 } 1906 1907 if (isGlobalConverted) 1908 { 1909 if (rc == QIMessageBox::No) 1910 mVBox.SaveSettingsWithBackup(); 1906 1911 else 1907 { 1908 CSession session = openSession ((*m).GetId()); 1909 if (!session.isNull()) 1910 { 1911 CMachine sm = session.GetMachine(); 1912 if (rc == QIMessageBox::No) 1913 sm.SaveSettingsWithBackup(); 1914 else 1915 sm.SaveSettings(); 1916 ; 1917 if (!sm.isOk()) 1918 vboxProblem().cannotSaveMachineSettings (sm); 1919 session.Close(); 1920 } 1921 } 1922 1923 if (m == machines.end()) 1924 break; 1925 1926 ++ m; 1912 mVBox.SaveSettings(); 1913 1914 if (!mVBox.isOk()) 1915 vboxProblem().cannotSaveGlobalSettings (mVBox); 1927 1916 } 1928 1917 } -
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxProblemReporter.cpp
r7369 r7380 1664 1664 "be possible to use these settings files with an older version of " 1665 1665 "VirtualBox in the future);</li>" 1666 "<li><b>Backup</b> to create backup copies of settings files in "1666 "<li><b>Backup</b> to create backup copies of the settings files in " 1667 1667 "the old format before saving them in the new format;</li>" 1668 "<li><b>Cancel</b> to not save the settings files now.<li>" 1668 "<li><b>Cancel</b> to not save the auto-converted settings files " 1669 "now.<li>" 1669 1670 "</ul>" 1670 1671 "<p>Note that if you select <b>Cancel</b>, the auto-converted "
Note:
See TracChangeset
for help on using the changeset viewer.