]> git.mxchange.org Git - flightgear.git/commitdiff
Ensure aircraft list stays in sync
authorJames Turner <zakalawe@mac.com>
Mon, 23 Nov 2015 17:59:16 +0000 (17:59 +0000)
committerJames Turner <zakalawe@mac.com>
Mon, 23 Nov 2015 17:59:16 +0000 (17:59 +0000)
- when removing a catalog, use the new notification to refresh
  the list, so we don’t show stale package data.

src/GUI/AircraftModel.cxx

index 9febfc703572505ddf1697ecc6876e505ae20f8b..ffcd95a38a3dbb51464013c37546cfa1a924b436 100644 (file)
@@ -378,6 +378,11 @@ protected:
         }
     }
 
+    virtual void availablePackagesChanged() Q_DECL_OVERRIDE
+    {
+        m_model->refreshPackages();
+    }
+
     virtual void dataForThumbnail(const std::string& aThumbnailUrl,
                                   size_t length, const uint8_t* bytes)
     {