]> git.lyx.org Git - lyx.git/blobdiff - src/support/Timeout.cpp
Make tab movement visible (#10733)
[lyx.git] / src / support / Timeout.cpp
index 7639fa600da3d88569eb6137a5f90041d8e95098..449fee033b77e1a6fc698b7595ac3d432ed47ec3 100644 (file)
@@ -139,7 +139,7 @@ Timeout & Timeout::setType(Type t)
 Timeout & Timeout::setTimeout(unsigned int msec)
 {
        // Can't have a timeout of zero!
-       LASSERT(msec, /**/);
+       LASSERT(msec, msec = 1000);
 
        timeout_ms = msec;
        return *this;
@@ -158,6 +158,12 @@ Timer::Timer() : d(new Private)
 }
 
 
+Timer::~Timer()
+{
+       delete d;
+}
+
+
 void Timer::restart()
 {
        time(&d->start_time);