Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 339369 | Differences between
and this patch

Collapse All | Expand All

(-)kdeutils-4.4.5/kcalc/kcalc_const_menu.cpp (-4 / +3 lines)
Lines 36-50 Link Here
36
  QFile file(KGlobal::dirs()->findResource("appdata", "scienceconstants.xml"));
36
  QFile file(KGlobal::dirs()->findResource("appdata", "scienceconstants.xml"));
37
37
38
  if (!file.open(QIODevice::ReadOnly)) {
38
  if (!file.open(QIODevice::ReadOnly)) {
39
    kDebug("Did not find file \"scienceconstants.xml\"."
39
    kDebug() << "Did not find file \"scienceconstants.xml\"." << "No constants will be available.";
40
	   "No constants will be available.");
41
    return;
40
    return;
42
  }
41
  }
43
  if (!doc.setContent(&file)) {
42
  if (!doc.setContent(&file)) {
44
    file.close();
43
    file.close();
45
    kDebug("The file \"scienceconstants.xml\" does not seem"
44
    kDebug() << "The file \"scienceconstants.xml\" does not seem"
46
	   "to be a valid description file."
45
	   "to be a valid description file."
47
	   "No constants will be available.");
46
	   "No constants will be available.";
48
    return;
47
    return;
49
  }
48
  }
50
  file.close();
49
  file.close();

Return to bug 339369