Ticket #1521: confirm.diff
File confirm.diff, 2.0 KB (added by , 16 years ago) |
---|
-
src/interface/Mainfrm.cpp
791 791 792 792 void CMainFrame::OnClose(wxCloseEvent &event) 793 793 { 794 if (GetState()->IsRemoteConnected() && GetState()->IsRemoteIdle()) 795 { 796 CConditionalDialog dlg(this, CConditionalDialog::confirmexit, CConditionalDialog::yesno); 797 dlg.SetTitle(_("Close FileZilla")); 798 799 dlg.AddText(_("You are still connected to a server.")); 800 dlg.AddText(_("Do you really want to close FileZilla?")); 801 802 if (!dlg.Run()) 803 return; 804 } 805 794 806 if (!m_bQuit) 795 807 { 796 808 RememberSizes(); -
src/interface/sitemanager.cpp
6 6 #include "filezillaapp.h" 7 7 #include "ipcmutex.h" 8 8 #include "wrapengine.h" 9 #include "conditionaldialog.h" 9 10 10 11 std::map<int, CSiteManagerItemData*> CSiteManager::m_idMap; 11 12 … … 671 672 wxTreeItemId item = pTree->GetSelection(); 672 673 if (!item.IsOk() || item == pTree->GetRootItem() || item == m_ownSites || IsPredefinedItem(item)) 673 674 return; 674 675 676 CConditionalDialog dlg(this, CConditionalDialog::sitemanager_confirmdelete, CConditionalDialog::yesno); 677 dlg.SetTitle(_("Delete Site Manager entry")); 678 679 dlg.AddText(_("Do you really want to delete selected entry?")); 680 681 if (!dlg.Run()) 682 return; 683 675 684 pTree->Delete(item); 676 685 } 677 686 -
src/interface/conditionaldialog.h
13 13 enum DialogType 14 14 { 15 15 rawcommand_quote, 16 viewhidden 16 viewhidden, 17 confirmexit, 18 sitemanager_confirmdelete 17 19 }; 18 20 19 21 CConditionalDialog(wxWindow* parent, enum DialogType type, enum Modes mode, bool checked = false);