- Timestamp:
- Oct 24, 2019 6:07:39 AM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 134235
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.cpp
r81447 r81507 2408 2408 } 2409 2409 2410 bool UIMessageCenter::confirmSoftKeyboardClose(const QStringList &strNameList) const2411 {2412 QString strJoinedString = strNameList.join("<br/>");2413 return questionBinary(0, MessageType_Warning,2414 tr("<p>Following layouts are edited/copied but not saved:</p>%1"2415 "<p>Closing this dialog will cause loosing the changes. Proceed?</p>").arg(strJoinedString),2416 0 /* auto-confirm id */,2417 "Ok", "Cancel");2418 }2419 2420 2410 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 2421 2411 bool UIMessageCenter::confirmCancelingAllNetworkRequests() const -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.h
r81447 r81507 446 446 void cannotSwitchScreenInSeamless(quint64 uMinVRAM) const; 447 447 void cannotAddDiskEncryptionPassword(const CConsole &console); 448 bool confirmSoftKeyboardClose(const QStringList &strNameList) const;449 448 450 449 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER -
trunk/src/VBox/Frontends/VirtualBox/src/softkeyboard/UISoftKeyboard.cpp
r81478 r81507 2604 2604 return; 2605 2605 2606 m_layouts.remove(m_uCurrentLayoutId);2607 setCurrentLayout(m_layouts.firstKey());2608 2609 2606 QDir fileToDelete; 2610 2607 QString strFilePath(layout.sourceFilePath()); … … 2629 2626 sigStatusBarMessage(QString("%1 %2 %3").arg(UISoftKeyboard::tr("Deleting the file ")).arg(strFilePath).arg(UISoftKeyboard::tr(" has failed"))); 2630 2627 } 2628 2629 m_layouts.remove(m_uCurrentLayoutId); 2630 setCurrentLayout(m_layouts.firstKey()); 2631 2631 } 2632 2632 … … 3773 3773 if (m_pKeyboardWidget && !strNameList.empty()) 3774 3774 { 3775 if (msgCenter().confirmSoftKeyboardClose(strNameList)) 3775 QString strJoinedString = strNameList.join("<br/>"); 3776 if (msgCenter().questionBinary(this, MessageType_Warning, 3777 tr("<p>Following layouts are edited/copied but not saved:</p>%1" 3778 "<p>Closing this dialog will cause loosing the changes. Proceed?</p>").arg(strJoinedString), 3779 0 /* auto-confirm id */, 3780 "Ok", "Cancel")) 3776 3781 QMainWindowWithRestorableGeometryAndRetranslateUi::closeEvent(event); 3777 3782 else … … 3943 3948 updateLayoutSelectorList(); 3944 3949 if (m_pKeyboardWidget && m_pKeyboardWidget->currentLayout() && m_pLayoutSelector) 3950 { 3945 3951 m_pLayoutSelector->setCurrentLayout(m_pKeyboardWidget->currentLayout()->uid()); 3952 m_pLayoutSelector->setCurrentLayoutIsEditable(m_pKeyboardWidget->currentLayout()->editable()); 3953 } 3946 3954 } 3947 3955
Note:
See TracChangeset
for help on using the changeset viewer.