iChangelog = "";
ui->pushButton_website->setIcon(QPixmap("/usr/share/icons/hicolor/48x48/hildon/general_web.png"));
- if( getMaemoOrgUrl(pkg)=="" && getMaemoOrgUrl(pkg->availablePackage())=="" ) {
+ if( getMaemoOrgUrl(pkg).isEmpty() && getMaemoOrgUrl(pkg->availablePackage()).isEmpty() ) {
ui->pushButton_website->setEnabled(false);
}
if( pkg->isMarkedForOperation() )
Package* upg_pkg = iPkg->availablePackage();
if( !upg_pkg )
upg_pkg = iPkg;
- if( (!pkg->isUpgradeable() || (upg_pkg && upg_pkg->upgradeDescription()=="")) && (getMaemoOrgUrl(upg_pkg)=="") )
+ if( (!pkg->isUpgradeable() || (upg_pkg && upg_pkg->upgradeDescription().isEmpty())) && (getMaemoOrgUrl(upg_pkg).isEmpty()) )
ui->radioTabChanges->hide();
if( pkg->isUpgradeable() )
ui->radioRemove->setChecked(true);
}
- if( getMaemoOrgUrl(upg_pkg)!="" && !iChangelogFetched && !iFetchInProgress &&
+ if( !getMaemoOrgUrl(upg_pkg).isEmpty() && !iChangelogFetched && !iFetchInProgress &&
iSettings->qsettings()->value("always_fetch_changes",false).toBool() )
{
queryChangelog();
if( !upg_pkg )
upg_pkg = iPkg;
- if( iPkg->isUpgradeable() && upg_pkg && upg_pkg->upgradeDescription()!="" )
+ if( iPkg->isUpgradeable() && upg_pkg && !upg_pkg->upgradeDescription().isEmpty() )
{
text += "<u><b>Upgrade description:</b></u>";
text += "<font size=\"-1\"><br>";
}
QString changelog;
- if( getMaemoOrgUrl(upg_pkg)!="" && !iChangelogFetched && !iFetchInProgress ) {
+ if( !getMaemoOrgUrl(upg_pkg).isEmpty() && !iChangelogFetched && !iFetchInProgress ) {
queryChangelog();
changelog = "Fetching changelog...";
} else {
iNetworkAccessManager = new QNetworkAccessManager(this);
connect(iNetworkAccessManager,SIGNAL(finished(QNetworkReply*)),this,SLOT(changelogFetchNetworkReply(QNetworkReply*)));
- if( iSettings->qsettings()->value("use_proxies").toBool() && iSettings->qsettings()->value("http_proxy").toString()!="" )
+ if( iSettings->qsettings()->value("use_proxies").toBool() && !iSettings->qsettings()->value("http_proxy").toString().isEmpty() )
{
QNetworkProxy proxy = Settings::createProxyFromString( iSettings->qsettings()->value("http_proxy").toString() );
iNetworkAccessManager->setProxy(proxy);