lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 489f0a2 1/2: Show busy cursor when cutting an


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 489f0a2 1/2: Show busy cursor when cutting and pasting
Date: Mon, 25 Jun 2018 09:14:19 -0400 (EDT)

branch: master
commit 489f0a265f13b421fb846d18084a2d491191a75b
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Show busy cursor when cutting and pasting
    
    These operations take a noticeable amount of time for large censuses.
---
 census_view.cpp | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/census_view.cpp b/census_view.cpp
index 6f862a8..22e13b0 100644
--- a/census_view.cpp
+++ b/census_view.cpp
@@ -59,7 +59,7 @@
 #include <wx/spinctrl.h>
 #include <wx/utils.h>                   // wxBusyCursor
 #include <wx/valnum.h>
-#include <wx/wupdlock.h>
+#include <wx/wupdlock.h>                // wxWindowUpdateLocker
 #include <wx/xrc/xmlres.h>
 
 #include <algorithm>
@@ -1696,6 +1696,8 @@ void CensusView::UponRunCaseToGroupQuote(wxCommandEvent&)
 
 void CensusView::UponPasteCensus(wxCommandEvent&)
 {
+    wxBusyCursor reverie;
+
     std::string const census_data = ClipboardEx::GetText();
 
     std::vector<std::string> headers;
@@ -1872,6 +1874,8 @@ void CensusView::UponPasteCensus(wxCommandEvent&)
 
 void CensusView::UponCopyCensus(wxCommandEvent&)
 {
+    wxBusyCursor reverie;
+
     DoCopyCensus();
 }
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]