mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Reduce default verbosity
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
bc6c8a3949
commit
2182f00177
3 changed files with 11 additions and 4 deletions
|
@ -7,6 +7,9 @@
|
|||
|
||||
static QList<ISocialNetworkIntegration*> _socialNetworks;
|
||||
|
||||
// no point in including dive.h for this
|
||||
extern int verbose;
|
||||
|
||||
PluginManager& PluginManager::instance()
|
||||
{
|
||||
static PluginManager self;
|
||||
|
@ -33,7 +36,9 @@ void PluginManager::loadPlugins()
|
|||
#endif
|
||||
pluginsDir.cd("plugins");
|
||||
|
||||
qDebug() << "Plugins Directory: " << pluginsDir;
|
||||
if (verbose)
|
||||
qDebug() << "Plugins Directory: " << pluginsDir;
|
||||
|
||||
foreach (const QString& fileName, pluginsDir.entryList(QDir::Files)) {
|
||||
QPluginLoader loader(pluginsDir.absoluteFilePath(fileName));
|
||||
QObject *plugin = loader.instance();
|
||||
|
|
|
@ -1107,7 +1107,7 @@ static int create_new_commit(git_repository *repo, const char *remote, const cha
|
|||
return report_error("Unable to look up parent in branch '%s'", branch);
|
||||
|
||||
if (saved_git_id) {
|
||||
if (existing_filename)
|
||||
if (existing_filename && verbose)
|
||||
fprintf(stderr, "existing filename %s\n", existing_filename);
|
||||
const git_oid *id = git_commit_id((const git_commit *) parent);
|
||||
/* if we are saving to the same git tree we got this from, let's make
|
||||
|
|
|
@ -559,7 +559,8 @@ void MainWindow::on_actionCloudstorageopen_triggered()
|
|||
getNotificationWidget()->showNotification(get_error_string(), KMessageWidget::Error);
|
||||
return;
|
||||
}
|
||||
qDebug() << filename;
|
||||
if (verbose)
|
||||
qDebug() << "Opening cloud storage from:" << filename;
|
||||
|
||||
closeCurrentFile();
|
||||
|
||||
|
@ -586,7 +587,8 @@ void MainWindow::on_actionCloudstoragesave_triggered()
|
|||
getNotificationWidget()->showNotification(get_error_string(), KMessageWidget::Error);
|
||||
return;
|
||||
}
|
||||
qDebug() << filename;
|
||||
if (verbose)
|
||||
qDebug() << "Saving cloud storage to:" << filename;
|
||||
if (information()->isEditing())
|
||||
information()->acceptChanges();
|
||||
|
||||
|
|
Loading…
Reference in a new issue