Commit 35cfa745 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Simplify code by removing public function that was called only once

parent 3330d7e5
......@@ -143,12 +143,6 @@ void KisWelcomePageWidget::setMainWindow(KisMainWindow* mainWin)
}
}
bool KisWelcomePageWidget::isDevelopmentBuild()
{
// dev builds contain GIT hash in it and the word git
// stable versions do not contain this
return qApp->applicationVersion().contains("git");
}
void KisWelcomePageWidget::showDropAreaIndicator(bool show)
{
......@@ -349,8 +343,10 @@ void KisWelcomePageWidget::slotUpdateVersionMessage()
alertIcon->setIcon(KisIconUtils::loadIcon("warning"));
alertIcon->setVisible(false);
// find out if we need an update...or if this is a development version
if (isDevelopmentBuild()) {
// find out if we need an update...or if this is a development version:
// dev builds contain GIT hash in it and the word git
// stable versions do not contain this.
if (qApp->applicationVersion().contains("git")) {
// Development build
QString versionLabelText = QString("<a style=\"color: " +
blendedColor.name() +
......
......@@ -39,8 +39,6 @@ class KRITAUI_EXPORT KisWelcomePageWidget : public QWidget, public Ui::KisWelcom
void setMainWindow(KisMainWindow* m_mainWindow);
bool isDevelopmentBuild();
public Q_SLOTS:
/// if a document is placed over this area, a dotted line will appear as an indicator
/// that it is a droppable area. KisMainwindow is what triggers this
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment