commit d44298249bb9c5370ae4e4201239840af09cda68
parent 1a7f399c5982624d4aaf7ea1a3fa104e4a4580e2
Author: cfillion <cfillion@users.noreply.github.com>
Date: Wed, 6 Apr 2016 22:00:15 -0400
warn if no repositories are enabled when opening the browser
better than displaying an empty package list
Diffstat:
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/src/reapack.cpp b/src/reapack.cpp
@@ -342,6 +342,14 @@ void ReaPack::browsePackages()
const vector<Remote> &remotes = m_config->remotes()->getEnabled();
+ if(remotes.empty()) {
+ ShowMessageBox("No repository enabled!\r\n"
+ "Enable or import repositories from Extensions > ReaPack > Manage repositories.",
+ "ReaPack", 0);
+
+ return;
+ }
+
fetchIndexes(remotes, [=] (const vector<IndexPtr> &indexes) {
m_browser = Dialog::Create<Browser>(m_instance, m_mainWindow, indexes, this);
m_browser->show();