# HG changeset patch # User Chris Cannam # Date 1294239945 0 # Node ID 290a95b5ceaeae47dfc93e507227f67e844c291c # Parent c5fceb3fe5b4814b17aa95a5fa2baa1de3b6c4fd * Report error if hg incoming does authentically fail (e.g. because remote repo is unavailable or unrelated) * Change target executable name from easyhg to EasyMercurial * Some (probably invisible) layout tweaks diff -r c5fceb3fe5b4 -r 290a95b5ceae easyhg.pro --- a/easyhg.pro Wed Jan 05 14:31:07 2011 +0000 +++ b/easyhg.pro Wed Jan 05 15:05:45 2011 +0000 @@ -2,7 +2,8 @@ CONFIG += debug TEMPLATE = app -TARGET = easyhg +TARGET = EasyMercurial + unix { DESTDIR = . } diff -r c5fceb3fe5b4 -r 290a95b5ceae filestatuswidget.cpp --- a/filestatuswidget.cpp Wed Jan 05 14:31:07 2011 +0000 +++ b/filestatuswidget.cpp Wed Jan 05 15:05:45 2011 +0000 @@ -40,10 +40,12 @@ setLayout(layout); int row = 0; - + +#ifndef Q_OS_MAC layout->addItem(new QSpacerItem(1, 1), row, 0); + ++row; +#endif - ++row; layout->addWidget(new QLabel(tr("Local:")), row, 0); m_openButton = new ClickableLabel; @@ -120,7 +122,7 @@ boxlayout->setMargin(0); box->setLayout(boxlayout); - boxlayout->addItem(new QSpacerItem(5, 5), 0, 0); + boxlayout->addItem(new QSpacerItem(3, 3), 0, 0); boxlayout->addWidget(new QLabel(labelFor(s)), 1, 0); @@ -132,13 +134,15 @@ connect(w, SIGNAL(itemSelectionChanged()), this, SLOT(itemSelectionChanged())); + boxlayout->addItem(new QSpacerItem(2, 2), 3, 0); + layout->addWidget(box, ++row, 0, 1, 3); box->hide(); } layout->setRowStretch(++row, 20); - layout->addItem(new QSpacerItem(1, 1), ++row, 0); + layout->addItem(new QSpacerItem(8, 8), ++row, 0); m_showAllFiles = new QCheckBox(tr("Show all files"), this); layout->addWidget(m_showAllFiles, ++row, 0, 1, 3, Qt::AlignLeft); diff -r c5fceb3fe5b4 -r 290a95b5ceae mainwindow.cpp --- a/mainwindow.cpp Wed Jan 05 14:31:07 2011 +0000 +++ b/mainwindow.cpp Wed Jan 05 15:05:45 2011 +0000 @@ -1549,10 +1549,13 @@ settings(); return; case ACT_INCOMING: - // returns non-zero code if the check was successful but there - // are no changes pending - if (output.trimmed() == "") showIncoming(""); - return; + // returns non-zero code and no output if the check was + // successful but there are no changes pending + if (output.trimmed() == "") { + showIncoming(""); + return; + } + break; case ACT_QUERY_HEADS: // fails if repo is empty; we don't care (if there's a genuine // problem, something else will fail too). Pretend it