UI: Show correct version in about dialog
This fixes an issue where the wrong version would be shown in the about dialog when it is a rc release.
This commit is contained in:
parent
eb672d7725
commit
736ebca259
@ -1,7 +1,6 @@
|
||||
#include "window-basic-about.hpp"
|
||||
#include "window-basic-main.hpp"
|
||||
#include "qt-wrappers.hpp"
|
||||
#include <string>
|
||||
#include <util/util.hpp>
|
||||
#include <util/platform.h>
|
||||
#include <platform.hpp>
|
||||
@ -17,17 +16,22 @@ OBSAbout::OBSAbout(QWidget *parent)
|
||||
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
|
||||
|
||||
QString bitness;
|
||||
QString ver;
|
||||
|
||||
if(sizeof(void*) == 4)
|
||||
bitness = " (32 bit)";
|
||||
else if(sizeof(void*) == 8)
|
||||
bitness = " (64 bit)";
|
||||
|
||||
ui->version->setText(
|
||||
QString::number(LIBOBS_API_MAJOR_VER) + "." +
|
||||
QString::number(LIBOBS_API_MINOR_VER) + "." +
|
||||
QString::number(LIBOBS_API_PATCH_VER) +
|
||||
bitness);
|
||||
#ifdef HAVE_OBSCONFIG_H
|
||||
ver += OBS_VERSION;
|
||||
#else
|
||||
ver += LIBOBS_API_MAJOR_VER + "." +
|
||||
LIBOBS_API_MINOR_VER + "." +
|
||||
LIBOBS_API_PATCH_VER;
|
||||
#endif
|
||||
|
||||
ui->version->setText(ver + bitness);
|
||||
|
||||
ui->contribute->setText(QTStr("About.Contribute"));
|
||||
ui->donate->setText("<a href='https://obsproject.com/donate'>" +
|
||||
|
Loading…
x
Reference in New Issue
Block a user